/* TK Dashboard Styles */

.tk-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.tk-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(220, 38, 38, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tk-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tk-header-title h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--aew-gold);
    font-weight: bold;
}

.tk-header-date {
    color: #aaa;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.tk-header-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 350px;
}

.tk-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tk-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tk-stat-label {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.tk-stat-value {
    color: var(--aew-gold);
    font-size: 0.875rem;
    font-weight: 500;
}

.tk-stat-bar {
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tk-stat-fill {
    height: 100%;
    transition: width 0.3s ease;
    position: relative;
}

.tk-stat-fill.energy {
    background: linear-gradient(90deg, 
        #dc2626 0%, 
        #f59e0b 50%, 
        #22c55e 100%);
}

.tk-stat-fill.stress {
    background: linear-gradient(90deg, 
        #22c55e 0%, 
        #f59e0b 50%, 
        #dc2626 100%);
}

.tk-stat-fill.hours {
    background: linear-gradient(90deg, 
        #3b82f6 0%, 
        #6366f1 50%, 
        #8b5cf6 100%);
}

/* Overview Section */
.tk-overview {
    background: var(--aew-card);
    border: 1px solid var(--aew-line);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* PPV Path Banner */
.ppv-path-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.ppv-path-banner h3 {
    margin: 0 0 0.75rem 0;
    color: var(--aew-gold);
    font-size: 1.1rem;
    font-weight: bold;
}

.ppv-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ppv-timeline > div {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.25rem;
}

.ppv-weeks {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--aew-gold);
}

.ppv-shows {
    color: #3b82f6;
}

.ppv-status {
    color: #aaa;
    font-style: italic;
}

.tk-overview h2 {
    margin: 0 0 1rem 0;
    color: var(--aew-gold);
    font-size: 1.25rem;
}

.tk-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tk-overview-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.25rem;
    border-left: 3px solid var(--aew-gold);
}

.tk-overview-label {
    color: #aaa;
    font-size: 0.875rem;
}

.tk-overview-value {
    color: #fff;
    font-weight: 600;
}

.tk-overview-value.alert {
    color: #f59e0b;
}

.tk-overview-value.warning {
    color: #f59e0b;
}

.tk-overview-value.danger {
    color: #ef4444;
}

/* Relationships */
.tk-relationships {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.tk-relationship {
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
}

.tk-relationship::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.5;
}

.tk-relationship:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tk-relationship-label {
    font-size: 0.875rem;
    color: #aaa;
}

.tk-relationship-value {
    font-size: 1.25rem;
    font-weight: bold;
}

.tk-relationship.excellent .tk-relationship-value {
    color: #22c55e;
}

.tk-relationship.good .tk-relationship-value {
    color: #84cc16;
}

.tk-relationship.concerning .tk-relationship-value {
    color: #f59e0b;
}

.tk-relationship.critical .tk-relationship-value {
    color: #ef4444;
}

/* Priorities Section */
.tk-priorities {
    background: var(--aew-card);
    border: 1px solid var(--aew-line);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tk-priorities h2 {
    margin: 0 0 1.5rem 0;
    color: var(--aew-gold);
    font-size: 1.25rem;
}

.tk-task-section {
    margin-bottom: 2rem;
}

.tk-task-section h3 {
    margin: 0 0 1rem 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tk-task-section.crisis h3 {
    color: #ef4444;
    border-bottom-color: rgba(239, 68, 68, 0.3);
}

/* Tasks */
.tk-task {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    border-left: 4px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.tk-task:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tk-task.mandatory {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.tk-task.important {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.tk-task.optional {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.tk-task.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.tk-task-icon {
    font-size: 1.25rem;
    min-width: 30px;
}

.tk-task-time {
    color: #aaa;
    font-size: 0.875rem;
    min-width: 50px;
}

.tk-task-title {
    flex: 1;
    color: #fff;
    font-weight: 500;
}

.tk-task-details {
    color: #888;
    font-size: 0.875rem;
}

.tk-task-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem;
    background: linear-gradient(135deg, var(--aew-gold), #f5b800);
    color: black;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
}

.btn-small.delegate {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-small.delegate:hover {
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4);
}

.btn-small.skip {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.btn-small.skip:hover {
    box-shadow: 0 3px 10px rgba(107, 114, 128, 0.4);
}

/* Total Time */
.tk-total-time {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

.tk-total-time .warning {
    color: #f59e0b;
    font-weight: bold;
}

/* Quick Actions */
.tk-quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tk-quick-actions .btn {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

/* Dual Panel Layout */
.tk-dual-panel-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tk-dual-panel-container .tk-section {
    margin-bottom: 0;
}

/* Social Media Section */
.tk-section {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tk-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #f3f4f6;
    font-weight: 600;
}

.tk-social-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.tk-social-column h3 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: #f3f4f6;
}

.tk-social-feed {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.tk-social-post {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.75rem;
    transition: background 0.2s;
}

.tk-social-post:hover {
    background: rgba(31, 41, 55, 0.8);
}

.tk-social-post-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
}

.tk-social-author {
    font-weight: 600;
    color: #f3f4f6;
}

.tk-social-handle {
    color: #9ca3af;
}

.tk-social-post-content {
    color: #e5e7eb;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.tk-social-post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: #9ca3af;
}

.tk-social-empty {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}

/* Championship Panel */
.championship-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.championship-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .tk-dual-panel-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tk-social-container {
        grid-template-columns: 1fr;
    }
    
    .tk-header-top {
        flex-direction: column;
    }
    
    .tk-header-stats {
        width: 100%;
    }
    
    .tk-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .tk-relationships {
        flex-direction: column;
    }
    
    .tk-task {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tk-task-actions {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .tk-task-actions button {
        flex: 1;
    }
    
    .tk-quick-actions {
        flex-direction: column;
    }
    
    .tk-quick-actions .btn {
        max-width: none;
    }
}