/* Color Palette: FCBA04 (gold), A50104 (dark red), 590004 (darker red), 250001 (darkest red), F3F3F3 (light gray) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, #250001 0%, #590004 25%, #A50104 50%, #590004 75%, #250001 100%);
    color: #F3F3F3;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated magical background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 15%, rgba(252, 186, 4, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(165, 1, 4, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(89, 0, 4, 0.02) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(252, 186, 4, 0.02) 0%, transparent 60%);
    animation: socialBackgroundShift 30s ease-in-out infinite;
    z-index: -2;
}

@keyframes socialBackgroundShift {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(20px) translateY(-20px) rotate(0.5deg); }
    50% { transform: translateX(-10px) translateY(20px) rotate(-0.5deg); }
    75% { transform: translateX(-20px) translateY(-10px) rotate(0.3deg); }
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #250001 0%, #590004 50%, #A50104 100%);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(37, 0, 1, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #FCBA04;
}

header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FCBA04;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Updated Navigation - Simple rectangular containers */
nav a {
    color: #F3F3F3;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    background: rgba(37, 0, 1, 0.6);
    border: 2px solid #FCBA04;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    display: block;
}

nav a:hover,
nav a.active {
    background: rgba(252, 186, 4, 0.2);
    color: #FCBA04;
    border-color: #F3F3F3;
}

nav a:active {
    transform: translateY(1px);
}

/* Main Content */
main {
    padding: 2rem;
    padding-bottom: 200px;
    max-width: 1400px;
    margin: 0 auto;
}

.social-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #FCBA04;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    animation: socialTitlePulse 4s ease-in-out infinite;
}

@keyframes socialTitlePulse {
    0%, 100% { 
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 30px rgba(252, 186, 4, 0.3);
        transform: scale(1);
    }
    50% { 
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 50px rgba(252, 186, 4, 0.6);
        transform: scale(1.02);
    }
}

.page-subtitle {
    font-size: 1.3rem;
    color: #F3F3F3;
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.9;
}

.mystical-divider {
    width: 300px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FCBA04, transparent);
    margin: 0 auto;
    position: relative;
    animation: dividerGlow 3s ease-in-out infinite alternate;
}

@keyframes dividerGlow {
    0% { box-shadow: 0 0 15px rgba(252, 186, 4, 0.5); }
    100% { box-shadow: 0 0 25px rgba(252, 186, 4, 0.8); }
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Social Platform Cards */
.social-platform {
    background: linear-gradient(135deg, rgba(37, 0, 1, 0.8) 0%, rgba(89, 0, 4, 0.6) 100%);
    border: 2px solid #FCBA04;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(252, 186, 4, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-platform::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(252, 186, 4, 0.03), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.social-platform:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(252, 186, 4, 0.4);
}

.social-platform:hover::before {
    animation: platformShimmer 1s ease-in-out;
}

@keyframes platformShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Platform Headers */
.platform-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.platform-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #FCBA04;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.platform-header p {
    color: #F3F3F3;
    font-size: 1rem;
    opacity: 0.9;
}

/* Platform Content */
.platform-content {
    position: relative;
    z-index: 2;
}

/* Facebook Specific Styles */
.facebook .platform-content {
    text-align: center;
}

.facebook-fallback {
    background: rgba(89, 0, 4, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #FCBA04;
}

.fallback-content h4 {
    color: #FCBA04;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.social-link {
    display: inline-block;
    background: linear-gradient(135deg, #FCBA04 0%, #A50104 100%);
    color: #F3F3F3;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    margin: 1rem 0;
    transition: all 0.3s ease;
    font-weight: 600;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(252, 186, 4, 0.4);
}

.link-icon {
    margin-right: 0.5rem;
}

.recent-updates {
    margin-top: 2rem;
    text-align: left;
}

.recent-updates h5 {
    color: #FCBA04;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.update-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(37, 0, 1, 0.3);
    border-radius: 10px;
    border-left: 3px solid #FCBA04;
}

.update-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.update-text p {
    margin-bottom: 0.5rem;
}

.update-text strong {
    color: #FCBA04;
}

/* Community Features */
.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: rgba(37, 0, 1, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(252, 186, 4, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #FCBA04;
    box-shadow: 0 5px 15px rgba(252, 186, 4, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #FCBA04;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #F3F3F3;
    opacity: 0.9;
}

/* Community Stats */
.community-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(37, 0, 1, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #FCBA04;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FCBA04;
    font-family: 'Cinzel', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: #F3F3F3;
    margin-top: 0.5rem;
}

/* Newsletter Styles */
.newsletter-form h4 {
    color: #FCBA04;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.newsletter-benefits {
    list-style: none;
    margin: 1rem 0;
}

.newsletter-benefits li {
    padding: 0.5rem 0;
    color: #F3F3F3;
    border-bottom: 1px solid rgba(252, 186, 4, 0.2);
}

.newsletter-benefits li:last-child {
    border-bottom: none;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.subscription-form input {
    padding: 1rem;
    border: 2px solid #FCBA04;
    border-radius: 10px;
    background: rgba(37, 0, 1, 0.3);
    color: #F3F3F3;
    font-size: 1rem;
}

.subscription-form input::placeholder {
    color: rgba(243, 243, 243, 0.7);
}

.subscribe-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FCBA04 0%, #A50104 100%);
    color: #F3F3F3;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(252, 186, 4, 0.4);
}

.privacy-note {
    font-size: 0.8rem;
    color: rgba(243, 243, 243, 0.7);
    text-align: center;
    margin-top: 1rem;
}

/* Updates Feed */
.updates-feed {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 1rem;
}

.update-post {
    background: rgba(37, 0, 1, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    border-left: 3px solid #FCBA04;
    transition: all 0.3s ease;
}

.update-post:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(252, 186, 4, 0.2);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FCBA04 0%, #A50104 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #F3F3F3;
    font-family: 'Cinzel', serif;
}

.post-author {
    color: #FCBA04;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.post-time {
    color: rgba(243, 243, 243, 0.7);
    font-size: 0.9rem;
}

.post-content p {
    color: #F3F3F3;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(252, 186, 4, 0.2);
    color: #FCBA04;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #FCBA04;
}

/* Custom scrollbar for updates feed */
.updates-feed::-webkit-scrollbar {
    width: 8px;
}

.updates-feed::-webkit-scrollbar-track {
    background: rgba(37, 0, 1, 0.3);
    border-radius: 4px;
}

.updates-feed::-webkit-scrollbar-thumb {
    background: #FCBA04;
    border-radius: 4px;
}

.updates-feed::-webkit-scrollbar-thumb:hover {
    background: #F3F3F3;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #250001 0%, #590004 100%);
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1rem 2rem;
    border-top: 3px solid #FCBA04;
    box-shadow: 0 -4px 20px rgba(37, 0, 1, 0.5);
    z-index: 1000;
}

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

.contact-form {
    flex: 1;
    margin-right: 2rem;
}

.contact-form h3 {
    color: #FCBA04;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.contact-form form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
    padding: 0.3rem;
    border: 1px solid #FCBA04;
    border-radius: 5px;
    background: rgba(243, 243, 243, 0.1);
    color: #F3F3F3;
    font-size: 0.9rem;
}

.contact-form input {
    width: 150px;
}

.contact-form textarea {
    width: 200px;
    height: 60px;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(243, 243, 243, 0.7);
}

.contact-form button {
    padding: 0.3rem 1rem;
    background: #FCBA04;
    color: #250001;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #F3F3F3;
    transform: translateY(-2px);
}

.footer-info {
    text-align: right;
    color: #F3F3F3;
}

.footer-info a {
    color: #FCBA04;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    nav a {
        width: 200px;
        text-align: center;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-platform {
        padding: 1.5rem;
    }
    
    .community-features {
        grid-template-columns: 1fr;
    }
    
    .community-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .subscription-form {
        gap: 0.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form {
        margin-right: 0;
    }
    
    .contact-form form {
        justify-content: center;
    }
    
    main {
        padding: 1rem;
        padding-bottom: 180px;
    }
}

@media (max-width: 480px) {
    .social-platform {
        padding: 1rem;
    }
    
    .platform-icon {
        font-size: 2.5rem;
    }
    
    .platform-header h3 {
        font-size: 1.5rem;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-tags {
        gap: 0.3rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}