/*!
Theme Name: Socialstack Theme
Theme URI: http://pryvus.com/
Author: Pryvus
Author URI: http://pryvus.com/
Description: Custom light theme
Version: 1.0.0
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: Socialstack-theme
*/

/* ======================================
   GLOBAL STYLES & VARIABLES
   ====================================== */

   :root {
    --primary: #FF6B9D;
    --secondary: #4ECDC4;
    --accent: #FFD700;
    --dark: #2C3E50;
    --light: #F8F9FA;
    --gradient-1: linear-gradient(135deg, #FF6B9D 0%, #FFA500 50%, #FFD700 100%);
    --gradient-2: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #FFF9E6 0%, #FFFFFF 50%, #F0F8FF 100%);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
    padding-bottom: 80px;
}

/* ======================================
   AGE VERIFICATION NOTICE
   ====================================== */

.age-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.age-notice-content {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.age-notice-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.age-notice-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #666;
}

.age-notice-content p strong {
    color: var(--dark);
    font-size: 1.2rem;
}

.age-notice-content .btn {
    margin-top: 20px;
    width: 100%;
}

/* ======================================
   HERO SECTION
   ====================================== */

.hero {
    position: relative;
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--gradient-1);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    animation: float 6s infinite ease-in-out;
    opacity: 0.8;
}

.float-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.float-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.float-2 {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.float-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Logo */
.logo-container {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    animation: bounce 2s infinite;
}

.logo-circle {
    animation: rotate 10s linear infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.app-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 40px;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero CTA */
.hero-cta {
    position: relative;
    z-index: 2;
}

.bonus-text {
    margin-top: 20px;
    font-size: 1rem;
    color: white;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 24px;
    border-radius: 24px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* ======================================
   BUTTONS
   ====================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.2rem;
}

.btn-icon {
    width: 24px;
    height: 24px;
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ======================================
   SECTIONS
   ====================================== */

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ======================================
   FEATURES SECTION
   ====================================== */

.features {
    padding: 60px 20px;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, #FFF 0%, #F8F9FA 100%);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    animation: iconBounce 3s infinite;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Icon Animations */
.slot-machine {
    animation: wiggle 2s infinite;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

.reel {
    animation: spin 2s infinite linear;
}

.reel-2 {
    animation-delay: 0.2s;
}

.reel-3 {
    animation-delay: 0.4s;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.gift-box {
    animation: shake 3s infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}

.friend {
    animation: wave 2s infinite ease-in-out;
}

.friend-2 {
    animation-delay: 0.5s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.safe-dial {
    animation: rotateDial 4s infinite ease-in-out;
}

@keyframes rotateDial {
    0%, 100% {
        transform: rotate(0deg);
    }
    33% {
        transform: rotate(90deg);
    }
    66% {
        transform: rotate(-90deg);
    }
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
}

/* ======================================
   HOW IT WORKS SECTION
   ====================================== */

.how-it-works {
    padding: 60px 20px;
    background: linear-gradient(180deg, #F8F9FA 0%, #FFF 100%);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    box-shadow: var(--shadow);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    animation: iconFloat 3s ease-in-out infinite;
}

.step-1 .step-icon {
    animation-delay: 0s;
}

.step-2 .step-icon {
    animation-delay: 0.5s;
}

.step-3 .step-icon {
    animation-delay: 1s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

/* ======================================
   COMMUNITY & SAFETY SECTION
   ====================================== */

.community-safety {
    padding: 60px 20px;
    background: white;
}

.community-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.community-block {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFF 100%);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.community-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.block-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
}

.block-icon svg {
    width: 100%;
    height: 100%;
    animation: rotateIcon 20s linear infinite;
}

@keyframes rotateIcon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.community-block h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.community-block p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 10px 0;
    color: #555;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* ======================================
   TRUST & TRANSPARENCY SECTION
   ====================================== */

.trust-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #F0F8FF 0%, #FFF9E6 100%);
}

.trust-content {
    max-width: 1200px;
    margin: 0 auto;
}

.trust-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin: -10px auto 50px;
    max-width: 600px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.trust-card {
    background: white;
    padding: 35px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.trust-card:nth-child(1) {
    border-top-color: #4ECDC4;
}

.trust-card:nth-child(2) {
    border-top-color: #FF6B9D;
}

.trust-card:nth-child(3) {
    border-top-color: #FFD700;
}

.trust-card:nth-child(4) {
    border-top-color: #4ECDC4;
}

.trust-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.trust-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.trust-icon svg {
    width: 100%;
    height: 100%;
    animation: pulse 2s ease-in-out infinite;
}

.trust-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.trust-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ======================================
   CTA SECTION
   ====================================== */

.cta-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-content > p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.benefit {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.disclaimer {
    margin-top: 30px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ======================================
   LEGAL & COMPLIANCE FOOTER
   ====================================== */

.legal-footer {
    background: #2C3E50;
    color: white;
    padding: 60px 20px 100px;
    margin-top: 60px;
}

.legal-content {
    max-width: 1000px;
    margin: 0 auto;
}

.legal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--accent);
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
}

.disclaimer-box p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

.disclaimer-box strong {
    color: var(--accent);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}

.disclaimer-box a {
    color: var(--secondary);
    text-decoration: underline;
}

.disclaimer-box a:hover {
    color: var(--accent);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.legal-link:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 20px;
}

/* ======================================
   BOTTOM NAVIGATION
   ====================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999;
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 12px;
    min-width: 64px;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(255, 107, 157, 0.1);
}

.nav-item.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.nav-item.nav-cta:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}

.nav-item.nav-cta:active {
    transform: scale(1.05);
}

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */

@media (min-width: 768px) {
    .hero {
        min-height: auto;
        padding: 80px 40px 60px;
    }

    .app-title {
        font-size: 3.5rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .community-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .section-title {
        font-size: 2.5rem;
    }

    .bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    .legal-footer {
        padding: 60px 40px;
    }

    .legal-links {
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        max-width: 1200px;
    }

    .community-block {
        padding: 50px;
    }
}

/* ======================================
   ACCESSIBILITY
   ====================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .game-card,
    .winner-item {
        border: 2px solid var(--dark);
    }
}
