/* ========================================
   Global Styles & Reset
   ======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* ========================================
   Typography
   ======================================== */

.script-font {
    font-family: 'Caveat', cursive;
    font-weight: normal;
}

.bold-caps {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   Header Navigation
   ======================================== */

header {
    background: #1a1a1a;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    height: 50px;
    width: auto;
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

nav a {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    color: #ff4444;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 40px;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-content .line1 {
    font-size: 64px;
}

.hero-content .line2 {
    font-size: 52px;
    margin-top: 10px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
    color: #ddd;
}

.store-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.store-buttons img {
    height: 60px;
    width: auto;
    transition: transform 0.2s ease;
}

.store-buttons img:hover {
    transform: scale(1.05);
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

/* ========================================
   Gallery Section (How It Works)
   ======================================== */

.gallery-section {
    background: linear-gradient(135deg, #d4383f 0%, #e84c4c 100%);
    padding: 100px 40px;
    position: relative;
}

.gallery-title {
    text-align: center;
    font-size: 56px;
    margin-bottom: 60px;
    color: #fff;
}

.gallery-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 500px;
}

.gallery-text {
    padding: 40px;
}

.gallery-text h2 {
    font-size: 48px;
    margin-bottom: 30px;
    font-weight: 700;
}

.gallery-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #f5f5f5;
}

.gallery-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-image img {
    max-height: 500px;
    width: auto;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 60px;
}

.indicator {
    width: 80px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #fff;
    transform: scaleY(1.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Footer Section (RipCoins)
   ======================================== */

.footer-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 100px 40px;
}

.footer-title {
    text-align: center;
    font-size: 56px;
    margin-bottom: 60px;
    color: #fff;
}

.ripcoins-content {
    max-width: 1200px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ripcoins-bullets {
    padding: 40px;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.bullet-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.bullet-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bullet-icon.placeholder {
    background: linear-gradient(135deg, #f4c542 0%, #f9a825 100%);
    border-radius: 50%;
}

.bullet-text {
    font-size: 16px;
    line-height: 1.7;
    color: #ddd;
}

.ripcoins-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ripcoins-phone img {
    max-height: 500px;
    transform: rotate(-15deg);
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
}

.footer-bottom {
    text-align: center;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin: 0 auto 30px;
    height: 80px;
    width: auto;
    display: inline-block;
}

.footer-bottom .store-buttons {
    justify-content: center;
}

/* ========================================
   Content Pages (Privacy, Terms, Delete)
   ======================================== */

.content-page {
    min-height: calc(100vh - 90px);
    padding: 80px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.content-container h1 {
    font-size: 48px;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
}

.content-container h2 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #f4f4f4;
}

.content-container h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #e8e8e8;
}

.content-container p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ddd;
}

.content-container ul,
.content-container ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-container li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #ddd;
}

.content-container strong {
    color: #fff;
}

.last-updated {
    text-align: center;
    font-style: italic;
    color: #999;
    margin-bottom: 40px;
}

/* ========================================
   Delete Account Page
   ======================================== */

.delete-account-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.delete-container {
    text-align: center;
}

.delete-container h1 {
    margin-bottom: 20px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.auth-button {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 280px;
}

.google-btn {
    background: #fff;
    color: #333;
}

.google-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.apple-btn {
    background: #000;
    color: #fff;
    border: 1px solid #333;
}

.apple-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.delete-section {
    display: none;
    margin-top: 40px;
}

.delete-section.visible {
    display: block;
}

.auth-status {
    font-size: 16px;
    color: #4CAF50;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
}

.delete-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    background: #ff4444;
    color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 280px;
}

.delete-btn:hover:not(:disabled) {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.delete-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.message {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    font-size: 16px;
    display: none;
}

.message.visible {
    display: block;
}

.message.error {
    background: rgba(255, 68, 68, 0.2);
    color: #ff8888;
    border: 1px solid #ff4444;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #90ee90;
    border: 1px solid #4CAF50;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero-container,
    .gallery-content,
    .ripcoins-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-illustration,
    .ripcoins-phone {
        order: -1;
    }

    .hero-content h1 {
        font-size: 56px;
    }

    .hero-content .line1 {
        font-size: 48px;
    }

    .hero-content .line2 {
        font-size: 40px;
    }

    .gallery-title,
    .footer-title {
        font-size: 42px;
    }

    .gallery-text h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .header-container {
        justify-content: center;
        text-align: center;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-section,
    .gallery-section,
    .footer-section {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content .line1 {
        font-size: 36px;
    }

    .hero-content .line2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .store-buttons {
        justify-content: center;
    }

    .store-buttons img {
        height: 50px;
    }

    .gallery-title,
    .footer-title {
        font-size: 36px;
    }

    .gallery-text {
        padding: 20px;
    }

    .gallery-text h2 {
        font-size: 28px;
    }

    .gallery-text p {
        font-size: 16px;
    }

    .gallery-indicators {
        gap: 10px;
    }

    .indicator {
        width: 60px;
        height: 6px;
    }

    .content-container {
        padding: 40px 30px;
    }

    .content-container h1 {
        font-size: 36px;
    }

    .content-container h2 {
        font-size: 26px;
    }

    .auth-button,
    .delete-btn {
        min-width: 240px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content .line1 {
        font-size: 28px;
    }

    .hero-content .line2 {
        font-size: 24px;
    }

    .content-container {
        padding: 30px 20px;
    }
}

/* ========================================
   CSP-Compliant Utility Classes
   ======================================== */

/* Display utilities */
.is-hidden {
    display: none !important;
}

.is-visible {
    display: block !important;
}

/* Disabled state */
.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Icon inline styles */
.icon-inline {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* Text color variants */
.text-light {
    color: #ddd;
}

.text-muted {
    color: #999;
}

.text-success {
    color: #4CAF50;
}

/* Spacing utilities */
.mb-30 {
    margin-bottom: 30px;
}

.mt-40 {
    margin-top: 40px;
}

/* Font size utilities */
.text-sm {
    font-size: 14px;
}

.text-base {
    font-size: 16px;
}

.text-lg {
    font-size: 18px;
}

/* Loading indicator */
.loading-text {
    font-size: 18px;
    color: #ddd;
}

/* Message/error display */
.message-error {
    color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Account deleted page styles */
.account-deleted-page .content-container {
    text-align: center;
    max-width: 600px;
}

.icon-container {
    margin-bottom: 30px;
}

.icon-success {
    opacity: 0.6;
}

.success-title {
    color: #4CAF50;
    margin-bottom: 20px;
}

.info-text {
    color: #ddd;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-box {
    background-color: rgba(76, 175, 80, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.info-box-text {
    color: #4CAF50;
    font-size: 16px;
    margin: 0;
}

.small-text {
    color: #999;
    font-size: 14px;
    margin-bottom: 40px;
}

.cta-container {
    margin-top: 40px;
}

.btn-home {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-home:hover {
    transform: translateY(-2px);
}

.contact-text {
    margin-top: 40px;
    font-size: 13px;
    color: #666;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Footer acknowledgment text */
.footer-acknowledgment {
    margin-top: 40px;
    text-align: center;
    color: #999;
}
