/* Social Page Specific Styles */
:root {
    --primary: #a66f7d; /* Dusty rose */
    --secondary: #f4a261; /* Warm orange */
    --hover: #e76f51; /* Darker orange */
    --amazon: #ff9900;
    --etsy: #f56400;
    --facebook: #3b5998;
    --instagram: #e4405f;
}

.social {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 2rem) 2rem 4rem; /* Clears header + extra space */
    min-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.index-card {
    background-color: rgba(255, 255, 255, 0.8); /* Faded white background */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Slight shadow for index card effect */
    max-width: 800px; /* Limits width for a card-like feel */
    width: 100%; /* Ensures it fits within the section */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    gap: 2rem; /* Adds spacing between sections */
}

.social-header {
    margin-bottom: 0; /* Remove bottom margin since gap handles spacing */
}

.social-header h1 {
    color: var(--primary);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    animation: slideIn 1s ease-in-out;
}

.social-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    border-radius: 2px;
}

.subtitle {
    color: var(--text-light);
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: 1.2rem;
    max-width: 500px; /* Slightly narrower for balance with buttons */
    margin: 0 auto; /* Centers it */
    animation: fadeInUp 1.2s ease-in-out;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0; /* Remove bottom margin since gap handles spacing */
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 200px;
    color: white;
}

.social-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.social-button.amazon {
    background-color: var(--amazon);
}

.social-button.amazon:hover {
    background-color: #e68a00;
}

.social-button.etsy {
    background-color: var(--etsy);
}

.social-button.etsy:hover {
    background-color: #d95300;
}

.social-button.facebook {
    background-color: var(--facebook);
}

.social-button.facebook:hover {
    background-color: #2d4373;
}

.social-button.instagram {
    background-color: var(--instagram);
}

.social-button.instagram:hover {
    background-color: #c13584;
}

.social-button .icon {
    font-size: 1.4rem;
}

.social-cta {
    max-width: 600px;
    text-align: left; /* Aligns text to the left */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the decorative line */
}

.social-cta .cta-text {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Crimson Text', serif;
    text-align: left; /* Ensures text stays left-aligned */
    width: 100%; /* Keeps it full width within the container */
}

.decorative-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 0 auto; /* Centers the line */
    border-radius: 1px;
}

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .social {
        padding: calc(var(--mobile-header-height) + 1rem) 1rem 2rem; /* Adjusted for mobile header */
    }

    .index-card {
        padding: 1.5rem; /* Slightly less padding on mobile */
        gap: 1.5rem; /* Reduced gap for mobile */
    }

    .social-header h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
        max-width: 400px; /* Narrower on mobile */
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-button {
        width: 180px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .social-button .icon {
        font-size: 1.2rem;
    }

    .social-cta .cta-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .social-header h1 {
        font-size: 1.8rem;
    }

    .social-header h1::after {
        width: 80px;
    }

    .subtitle {
        font-size: 0.9rem;
        max-width: 300px; /* Even narrower on small screens */
    }

    .social-links {
        gap: 1rem;
    }

    .social-button {
        width: 160px;
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .social-button .icon {
        font-size: 1.1rem;
    }

    .social-cta .cta-text {
        font-size: 0.9rem;
    }
}