/* layouts/footer.css - Compact collapsible footer with session stats */

/* Main footer styling - much smaller */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.98));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(248, 113, 113, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(248, 113, 113, 0.2);
    color: var(--color-text-secondary, #94a3b8);
    z-index: 1000;
    min-height: 60px;
    max-height: 30vh;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.app-footer.collapsed {
    max-height: 60px;
}

/* Footer content container */
.footer-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* === FOOTER HEADER - Always Visible === */
.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 30px;
}

.footer-title {
    color: #f87171;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.footer-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-toggle-btn {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.8), rgba(245, 158, 11, 0.9));
    color: #1f2937;
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3);
}

.footer-toggle-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(251, 191, 36, 0.4);
}

.footer-toggle-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-toggle-btn.collapsed i {
    transform: rotate(180deg);
}

/* === SESSION STATS SECTION - Collapsible === */
.footer-stats {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(248, 113, 113, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.footer-stats.hidden {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    padding: 0 0.75rem;
    margin: 0;
}

.footer-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f87171, #fbbf24, #f87171);
    border-radius: 8px 8px 0 0;
}

.stats-title {
    color: #f87171;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.stats-title i {
    font-size: 0.8rem;
    color: #fbbf24;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.stat-group {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 6px;
    padding: 0.5rem;
    border: 1px solid rgba(71, 85, 105, 0.3);
    transition: all 0.3s ease;
}

.stat-group:hover {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-1px);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
    font-size: 0.8rem;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
}

.stat-value {
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    min-width: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

/* Rarity-based colors - more subtle */
.stat-common { 
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #f3f4f6; 
}

.stat-uncommon { 
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.stat-rare { 
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.stat-packs, .stat-total { 
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
}

.stat-value:hover {
    transform: scale(1.05);
}

/* Packs breakdown */
.packs-breakdown .stat-item {
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 0.125rem;
    border-radius: 3px;
    padding: 0.25rem;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.pack-stat .stat-value {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

/* Stats actions - smaller */
.stats-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.footer-action-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(124, 58, 237, 0.9));
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-action-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    transform: translateY(-1px);
}

.footer-action-btn i {
    font-size: 0.7rem;
}

/* Empty stats state */
.footer-stats.empty {
    text-align: center;
    padding: 1rem 0.75rem;
}

.empty-stats i {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.empty-stats p {
    margin: 0.25rem 0;
    color: #9ca3af;
    font-size: 0.8rem;
}

.empty-subtitle {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* === FOOTER BOTTOM SECTION === */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    font-size: 0.7rem;
    border-top: 1px solid rgba(71, 85, 105, 0.2);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.footer-link i {
    font-size: 0.8rem;
}

.footer-copyright {
    text-align: right;
    font-size: 0.65rem;
    line-height: 1.2;
    color: #6b7280;
}

.footer-copyright p {
    margin: 0.125rem 0;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
    .app-footer {
        min-height: 50px;
        max-height: 40vh;
    }
    
    .app-footer.collapsed {
        max-height: 50px;
    }
    
    .footer-content {
        padding: 0.5rem 1rem;
    }
    
    .footer-header {
        min-height: 25px;
    }
    
    .footer-title {
        font-size: 0.9rem;
    }
    
    .footer-toggle-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .stats-actions {
        flex-direction: column;
        gap: 0.375rem;
    }
}

@media (max-width: 480px) {
    .footer-link span {
        display: none;
    }
    
    .footer-link {
        padding: 0.375rem;
        justify-content: center;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
    }
    
    .stat-value {
        align-self: flex-end;
    }
} 