/* ============================================
   📱 DECLARATION - MOBILE OPTIMIZED STYLES 
   ============================================ */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container - Mobile First */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Declaration Header */
.declaration-header {
    padding: 1rem 0 2rem;
}

.declaration-intro {
    text-align: center;
    margin-top: 2rem;
}

.declaration-title {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    word-wrap: break-word;
}

.declaration-subtitle {
    font-size: 1rem;
    color: #cccccc;
    margin: 0 auto 1.5rem;
    line-height: 1.4;
    max-width: none;
}

/* Introduction Badges */
.intro-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.intro-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 25px;
    width: fit-content;
    max-width: 90%;
}

.badge-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Main Content */
.declaration-main {
    padding: 1rem 0;
}

/* Parchment Document */
.parchment-document {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 2rem 0;
    padding: 1.5rem;
    overflow-x: hidden;
}

.declaration-section {
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    color: #00ff88;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    padding-bottom: 0.5rem;
    word-wrap: break-word;
}

.section-icon {
    font-size: 1.2rem;
}

/* Simplified Ink Section */
.ink-section {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 2rem 1rem;
    margin: 2rem 0;
    text-align: center;
}

.ink-title {
    color: #00ff88;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: bold;
}

.ink-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 2rem 0;
}

/* Simple Button Styling */
.sparkle-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.sparkle-button button {
    width: 100%;
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 60px;
}

.sparkle-button button:hover,
.sparkle-button button:focus {
    background: linear-gradient(135deg, #00cc66, #00aa55);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.sparkle-button .text {
    color: #000;
    font-weight: bold;
}

/* Hide complex sparkle effects on mobile */
.sparkle-button .spark,
.sparkle-button .backdrop,
.sparkle-button .particle-pen,
.sparkle-button .sparkle {
    display: none;
}

/* Content Grid Simplification */
.rights-grid,
.grievances-list,
.entitlements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.right-item,
.grievance-item,
.entitlement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.right-icon,
.grievance-icon,
.entitlement-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.right-text,
.grievance-text {
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Tablet and Desktop Enhancements */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: 0 2rem;
    }

    .declaration-header {
        padding: 2rem 0 3rem;
    }

    .declaration-title {
        font-size: 3rem;
    }

    .declaration-subtitle {
        font-size: 1.2rem;
        max-width: 600px;
    }

    .intro-badges {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .parchment-document {
        padding: 2.5rem;
        border-radius: 12px;
    }

    .section-title {
        flex-direction: row;
        text-align: left;
        font-size: 1.8rem;
    }

    .rights-grid,
    .grievances-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .entitlements-list {
        gap: 2rem;
    }

    .sparkle-button {
        max-width: 350px;
    }

    /* Re-enable sparkle effects on larger screens */
    .sparkle-button .spark,
    .sparkle-button .backdrop,
    .sparkle-button .particle-pen,
    .sparkle-button .sparkle {
        display: block;
    }
}

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

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

    .declaration-subtitle {
        font-size: 1.4rem;
    }

    .parchment-document {
        padding: 3rem;
    }

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

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

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

/* Fix for potential overflow issues */
* {
    max-width: 100%;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Text wrapping improvements */
h1, h2, h3, h4, h5, h6, p, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}
