/* コミュニティ裁判関連のCSS - ホームページスタイルに合わせたダークテーマ版 */

:root {
    --primary-color: #4361ee;
    --secondary-color: #6b7c93;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --border-radius: 16px;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* 共通スタイル */
.trials-page, .trial-details-page {
    margin: 0 auto;
    width: 100%;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #fff;
}

/* ホームページと同様のヒーローセクション */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vh - 120px);
    padding: 30px 20px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 20, 10, 0.7) 0%, rgba(50, 40, 30, 0.5) 100%);
    z-index: 0;
}

/* ページ全体をheroセクションのような表示に */
.page-header {
    width: 100%;
    margin: 0 0 2rem 0;
    text-align: center;
    position: relative;
    color: white;
    padding: 20px 0;
    z-index: 1;
}

/* ヘッダー内部のコンテンツ配置 */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-left {
    flex: 1;
    text-align: left;
}

.page-header h1 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

    .back-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        text-decoration: none;
    }

    .back-btn i {
        margin-right: 5px;
    }

.boya-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    color: white;
    display: inline-block;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0;
}

    .boya-box i {
        margin-right: 0.5rem;
        color: rgba(255, 255, 255, 0.9);
    }

/* タブ関連 */
.tabs-container {
    display: flex;
    margin-bottom: 1.5rem;
    background: rgba(25, 25, 35, 0.75);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.tab {
    flex: 1;
    padding: 0.9rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    transition: var(--transition);
}

    .tab:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        text-decoration: none;
    }

    .tab.active {
        font-weight: bold;
        color: white;
        background: rgba(67, 97, 238, 0.5);
    }

    .tab i {
        margin-right: 5px;
    }

/* 裁判一覧関連 */
.trials-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.trial-details-page {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.trial-card {
    background: rgba(25, 25, 35, 0.85);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 4px solid rgba(255, 255, 255, 0.2);
}

    .trial-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
        background: rgba(35, 35, 45, 0.9);
    }

    /* 裁判カードのステータス別スタイル */
    .trial-card.pending {
        border-top-color: var(--warning-color);
    }

    .trial-card.in-progress {
        border-top-color: var(--primary-color);
    }

    .trial-card.guilty {
        border-top-color: var(--danger-color);
    }

    .trial-card.innocent {
        border-top-color: var(--success-color);
    }

.trial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trial-title h3 {
    font-size: 1.2rem;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trial-id {
    font-family: monospace;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

.trial-status .status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status.pending {
    background: rgba(246, 194, 62, 0.2);
    color: #ffbe0b;
}

.status.in-progress {
    background: rgba(78, 115, 223, 0.2);
    color: #6a82fb;
}

.status.guilty {
    background: rgba(231, 74, 59, 0.2);
    color: #ff5a5f;
}

.status.innocent {
    background: rgba(28, 200, 138, 0.2);
    color: #4ecdc4;
}

.trial-info {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.info-item {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
}

    .info-item .label {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 0.35rem;
        font-weight: 500;
    }

    .info-item .value {
        font-weight: 600;
        color: white;
    }

    .info-item.votes {
        display: flex;
        gap: 1rem;
    }

.votes {
    display: flex;
    gap: 15px;
}

.guilty-votes, .innocent-votes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
}

.guilty-votes {
    background: rgba(231, 74, 59, 0.2);
    color: #ff5a5f;
}

.innocent-votes {
    background: rgba(28, 200, 138, 0.2);
    color: #4ecdc4;
}

.trial-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
    background: rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: rgba(67, 97, 238, 0.9);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

    .btn-primary:hover {
        background: rgba(67, 97, 238, 1);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        color: white;
        text-decoration: none;
    }

/* カウントダウン表示 */
.countdown {
    font-weight: 600;
    transition: var(--transition);
}

    .countdown.urgent {
        color: var(--danger-color);
        animation: pulse 1.5s infinite;
    }

    .countdown.expired {
        color: var(--danger-color);
        text-decoration: line-through;
        opacity: 0.7;
    }

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* 空の状態 */
.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    width: 100%;
    background: rgba(25, 25, 35, 0.75);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .empty-state i {
        font-size: 3.5rem;
        color: rgba(255, 255, 255, 0.3);
        margin-bottom: 1.5rem;
    }

    .empty-state h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: white;
    }

    .empty-state p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 0.5rem;
}

.page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(25, 25, 35, 0.75);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .page-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        color: white;
        text-decoration: none;
    }

    .page-item.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

/* 裁判詳細ページ関連 */
.trial-status-banner {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    background: rgba(25, 25, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .trial-status-banner.pending {
        border-top: 4px solid var(--warning-color);
    }

    .trial-status-banner.in-progress {
        border-top: 4px solid var(--primary-color);
    }

    .trial-status-banner.guilty {
        border-top: 4px solid var(--danger-color);
    }

    .trial-status-banner.innocent {
        border-top: 4px solid var(--success-color);
    }

.status-icon {
    font-size: 2.5rem;
    margin-right: 20px;
}

.pending .status-icon i {
    color: var(--warning-color);
}

.in-progress .status-icon i {
    color: var(--primary-color);
}

.guilty .status-icon i {
    color: var(--danger-color);
}

.innocent .status-icon i {
    color: var(--success-color);
}

.status-text h2 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: white;
}

.status-text p {
    color: rgba(255, 255, 255, 0.8);
}

.trial-container {
    display: flex;
    gap: 25px;
}

.trial-content-area {
    flex: 3;
}

.trial-voting-area {
    flex: 2;
}

.content-card, .defense-statement-card, .voting-card, .comments-card {
    background: rgba(25, 25, 35, 0.85);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .content-card h3, .defense-statement-card h3, .voting-card h3, .comments-card h3 {
        font-size: 1.2rem;
        margin-top: 0;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }

.target-content {
    margin-bottom: 20px;
}

.post-content h4 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: white;
}

.content-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    white-space: pre-line;
}

.content-image {
    margin-top: 15px;
}

    .content-image img {
        max-width: 100%;
        border-radius: 8px;
    }

.comment-content .comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-header .username {
    font-weight: bold;
    color: var(--primary-color);
}

.comment-header .date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.defense-form .form-group {
    margin-bottom: 15px;
}

.defense-form label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.defense-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    resize: vertical;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(30, 30, 40, 0.9);
    color: white;
}

    .defense-form textarea:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    }

.form-actions {
    text-align: right;
}

.defense-content {
    background-color: rgba(30, 30, 40, 0.7);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
}

.empty-defense {
    padding: 20px;
    text-align: center;
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.vote-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.vote-option {
    flex: 1;
}

    .vote-option input[type="radio"] {
        display: none;
    }

    .vote-option label {
        display: block;
        text-align: center;
        padding: 15px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        cursor: pointer;
        transition: var(--transition);
        color: rgba(255, 255, 255, 0.8);
    }

        .vote-option label:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

    .vote-option input[type="radio"]:checked + label {
        font-weight: bold;
        color: white;
    }

        .vote-option input[type="radio"]:checked + label.vote-guilty {
            background-color: rgba(231, 74, 59, 0.2);
            border-color: var(--danger-color);
        }

        .vote-option input[type="radio"]:checked + label.vote-innocent {
            background-color: rgba(28, 200, 138, 0.2);
            border-color: var(--success-color);
        }

.vote-guilty i {
    color: var(--danger-color);
}

.vote-innocent i {
    color: var(--success-color);
}

.vote-form .form-group {
    margin-bottom: 15px;
}

.vote-form label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.vote-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    resize: vertical;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(30, 30, 40, 0.9);
    color: white;
}

    .vote-form textarea:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    }

.already-voted {
    text-align: center;
    padding: 15px;
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.vote-choice {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

    .vote-choice.guilty {
        background-color: rgba(231, 74, 59, 0.2);
        color: #ff5a5f;
    }

    .vote-choice.innocent {
        background-color: rgba(28, 200, 138, 0.2);
        color: #4ecdc4;
    }

.voting-disabled, .login-required {
    text-align: center;
    padding: 20px;
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.verdict-result {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

    .verdict-result.guilty {
        background-color: rgba(231, 74, 59, 0.2);
        border: 1px solid rgba(231, 74, 59, 0.3);
    }

    .verdict-result.innocent {
        background-color: rgba(28, 200, 138, 0.2);
        border: 1px solid rgba(28, 200, 138, 0.3);
    }

.verdict-title {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: white;
}

.vote-summary {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.punishment-details {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

    .punishment-details h5 {
        margin-top: 0;
        margin-bottom: 10px;
        color: #ff5a5f;
    }

.verdict-date {
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.voting-pending {
    text-align: center;
    padding: 15px;
    background-color: rgba(30, 30, 40, 0.7);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.deadline {
    font-weight: bold;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.comments-list {
    margin-bottom: 20px;
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

    .comment-item:last-child {
        border-bottom: none;
    }

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

    .comment-header .username {
        font-weight: bold;
        color: var(--primary-color);
    }

    .comment-header .date {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
    }

.comment-content p {
    margin: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.comment-form {
    margin-top: 15px;
}

    .comment-form .form-group {
        margin-bottom: 10px;
    }

    .comment-form textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        resize: vertical;
        font-size: 1rem;
        transition: var(--transition);
        background: rgba(30, 30, 40, 0.9);
        color: white;
    }

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

    .btn-submit:hover {
        background-color: rgba(67, 97, 238, 0.9);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }

.btn-login {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 10px;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

    .btn-login:hover {
        background-color: rgba(67, 97, 238, 0.9);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        color: white;
        text-decoration: none;
    }

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .trials-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .trial-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .trials-page, .trial-details-page {
        width: 95%;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-left {
        text-align: center;
    }

    .boya-box {
        margin: 10px auto;
    }

    .tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

        .tab i {
            margin-right: 3px;
        }

    .trials-list {
        grid-template-columns: 1fr;
    }

    .trial-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .trial-title h3 {
        justify-content: center;
    }

    .trial-status {
        text-align: center;
    }

    .trial-info {
        flex-direction: column;
        gap: 10px;
    }

    .info-item.votes {
        justify-content: space-around;
    }

    .vote-options {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .boya-box {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .trial-header {
        padding: 15px;
    }

    .trial-title h3 {
        font-size: 1.1rem;
    }

    .trial-info {
        padding: 15px;
    }

    .trial-actions {
        padding: 15px;
    }

    .vote-summary {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
/* カードリンクのスタイル */
.trial-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: var(--transition);
}

    .trial-card-link:hover {
        transform: translateY(-3px);
        text-decoration: none;
        color: inherit;
    }

/* カードスタイルの調整 */
.trial-card {
    margin-bottom: 0; /* リンクの間隔を調整 */
}

/* 不要になった trial-actions を削除 */
.trial-actions {
    display: none;
}