/**
 * Philosophy Debate System Styles
 * 
 * @package Philosophy_Chain
 * @since 1.0.6
 */

/* ========================================
   DEBATE ARCHIVE STYLES
   ======================================== */

.debates-archive-list {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.debate-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.debate-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #c9a961;
}

.debate-question h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.debate-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.debate-participants {
    font-weight: 600;
    color: #c9a961;
}

.debate-date {
    color: #999;
}

.debate-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.replay-debate-btn,
.print-debate-btn {
    padding: 10px 20px;
    border: 2px solid #c9a961;
    background: transparent;
    color: #c9a961;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.replay-debate-btn:hover {
    background: #c9a961;
    color: #fff;
}

.print-debate-btn {
    border-color: #2c3e50;
    color: #2c3e50;
}

.print-debate-btn:hover {
    background: #2c3e50;
    color: #fff;
}

.no-debates {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1em;
}

/* ========================================
   CONCLUSION SCREEN BUTTONS
   ======================================== */

.conclusion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.conclusion-buttons button {
    padding: 12px 24px;
    border: 2px solid #c9a961;
    background: #c9a961;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
}

.conclusion-buttons button:hover {
    background: #b8954d;
    border-color: #b8954d;
    transform: translateY(-2px);
}

#revisit-debate-btn {
    background: transparent;
    color: #c9a961;
}

#revisit-debate-btn:hover {
    background: #c9a961;
    color: #fff;
}

#save-debate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   DEBATE MODAL
   ======================================== */

.debate-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.debate-modal .modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.debate-modal h2 {
    color: #2c3e50;
    border-bottom: 3px solid #c9a961;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.debates-list {
    margin-top: 20px;
}

.debate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.debate-item:hover {
    border-color: #c9a961;
    background: #fafafa;
}

.debate-info {
    flex: 1;
}

.debate-info strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.debate-info span {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 3px;
}

.debate-item .debate-actions {
    display: flex;
    gap: 8px;
    margin: 0;
}

.debate-item button {
    padding: 8px 16px;
    font-size: 0.9em;
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

.debate-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.notification-success {
    background: #4caf50;
    color: #fff;
}

.notification-error {
    background: #f44336;
    color: #fff;
}

.notification-info {
    background: #2196f3;
    color: #fff;
}

/* ========================================
   ANIMATED TURNS (REPLAY)
   ======================================== */

.animated-turn {
    animation: slideInLeft 0.4s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .debate-card {
        padding: 20px;
    }
    
    .debate-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .debate-actions {
        flex-direction: column;
    }
    
    .debate-actions button {
        width: 100%;
    }
    
    .conclusion-buttons {
        flex-direction: column;
    }
    
    .conclusion-buttons button {
        width: 100%;
    }
    
    .debate-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .debate-item .debate-actions {
        width: 100%;
    }
    
    .debate-item button {
        flex: 1;
    }
    
    .debate-modal .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .debate-actions,
    .conclusion-buttons,
    .close-modal {
        display: none !important;
    }
    
    .debate-card {
        page-break-inside: avoid;
        border: 1px solid #000;
    }
}
