/* Shared Styles for Living Room Ideas Platform */
/* Contains styles for Header and Footer components */

/* Design System Variables - Centralized Color Palette */
:root {
    /* Primary Blue Palette - Modern & Professional */
    --primary-blue: #2563EB;        /* Main brand blue */
    --primary-blue-light: #3B82F6;  /* Light variant */
    --primary-blue-dark: #1D4ED8;   /* Dark variant */
    --primary-blue-hover: #1D4ED8;  /* Hover state */
    --primary-blue-subtle: #DBEAFE; /* Very light background */

    /* Secondary Blue Palette - Accent & Highlights */
    --accent-blue: #0EA5E9;         /* Sky blue for accents */
    --accent-blue-light: #38BDF8;   /* Light sky blue */
    --accent-blue-dark: #0284C7;    /* Dark sky blue */

    /* Neutral Colors */
    --text-primary: #1F2937;        /* Dark gray for text */
    --text-secondary: #6B7280;      /* Medium gray for secondary text */
    --text-muted: #9CA3AF;          /* Light gray for muted text */
    --border-light: #E5E7EB;        /* Light border */
    --border-gray: #D1D5DB;         /* Gray border */
    --surface-white: #FFFFFF;       /* Pure white */
    --surface-gray: #F9FAFB;        /* Light gray background */
    --surface-light: #F8F9FA;       /* Very light gray background */
    --surface-border: #E2E8F0;      /* Border color */
    --surface-border-hover: #CBD5E1; /* Hover border */

    /* Interactive States */
    --hover-primary: var(--primary-blue-light);
    --hover-accent: var(--accent-blue-light);
    --focus-ring: var(--primary-blue-subtle);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #e2e8f0;
    margin-top: 80px;
    padding: 64px 0 0 0;
    position: relative;
}

.footer-content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #0066cc;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.footer-tagline {
    font-size: 16px;
    line-height: 1.6;
    color: #5f6368;
    margin: 0;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.footer-links a:hover {
    color: #0066cc;
}

.footer-bottom {
    border-top: 1px solid #e8eaed;
    background: rgba(255, 255, 255, 0.6);
    margin-top: 48px;
    padding: 24px 0;
}

.footer-bottom-content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 14px;
    color: #80868b;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e8eaed;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #0066cc;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.social-icon {
    font-size: 16px;
    color: #5f6368;
    transition: color 0.2s ease;
}

.social-link:hover .social-icon {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 36px;
    }
    
    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .footer {
        margin-top: 48px;
        padding: 40px 0 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 0 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        margin-top: 32px;
        padding: 32px 0 0 0;
    }
    
    .footer-content {
        gap: 24px;
        padding: 0 16px;
    }
    
    .footer-bottom-content {
        padding: 0 16px;
    }
    
    .footer-logo {
        font-size: 20px;
    }
    
    .footer-tagline {
        font-size: 14px;
    }
} 

/* Universal Loading State - Unified Design */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-white, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loading-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue, #2563eb), transparent);
    animation: loadingPulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary, #666);
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.3;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Calculator Button - Enhanced Design with Animations */
.calculator-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #fefbf3 100%);
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-right: 12px;
    animation: calculatorPulse 3s ease-in-out infinite;
}

/* Calculator Button Pulse Animation */
@keyframes calculatorPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 0 rgba(245, 158, 11, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15), 0 0 0 4px rgba(245, 158, 11, 0.1);
        transform: scale(1.02);
    }
}

.calculator-btn:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.calculator-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.calculator-icon {
    font-size: 16px;
    transition: transform 0.2s ease;
    animation: calculatorIconFloat 4s ease-in-out infinite;
}

.calculator-btn:hover .calculator-icon {
    transform: scale(1.1) rotate(5deg);
    animation-play-state: paused;
}

/* Calculator Icon Floating Animation */
@keyframes calculatorIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(2deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(-1px) rotate(-1deg);
    }
}

.calculator-text {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Responsive adjustments for calculator button */
@media (max-width: 768px) {
    .calculator-btn {
        padding: 8px 16px;
        font-size: 13px;
        margin-right: 8px;
    }
    
    .calculator-text {
        display: none;
    }
    
    .calculator-icon {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .calculator-btn {
        padding: 6px 12px;
        margin-right: 6px;
    }
    
    .calculator-icon {
        font-size: 16px;
    }
}
