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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Bangla font support */
body[lang="bn"] {
    font-family: 'SolaimanLipi', 'Kalpurush', 'Noto Sans Bengali', 'Vrinda', sans-serif;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-button {
    background-color: rgba(255, 255, 255, 0.95);
    color: #16213e;
    border: 2px solid #16213e;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-button:hover {
    background-color: #16213e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.lang-button:active {
    transform: translateY(0);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.85;
}

.intro-text p {
    margin-bottom: 15px;
}

.cta-button {
    background-color: #fff;
    color: #16213e;
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cta-button:active {
    transform: translateY(0);
}

/* Form Section */
.form-section {
    padding: 60px 0;
    background-color: #fff;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.form-section.hidden {
    display: none;
    opacity: 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: #1a1a2e;
}

.helper-text {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-style: italic;
}

.thought-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #e63946;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #16213e;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.character-count {
    text-align: right;
    font-size: 0.875rem;
    color: #666;
    margin-top: 5px;
}

.submit-button {
    width: 100%;
    background-color: #16213e;
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 33, 62, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-message {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
    color: #155724;
}

.success-message.hidden {
    display: none;
}

.success-message p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.success-message p:last-child {
    margin-bottom: 0;
}

/* Thoughts Section */
.thoughts-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.thought-count {
    display: none;
    text-align: center;
    margin: 20px 0 40px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #16213e 0%, #0f1724 100%);
    border-radius: 50px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(22, 33, 62, 0.3);
}

.thought-count #totalThoughts {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    margin-right: 8px;
}

.thought-count span[data-i18n] {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.thoughts-container {
    max-width: 700px;
    margin: 0 auto;
}

.loading-text {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 0;
}

.thought-card {
    background-color: #fff;
    border-left: 4px solid #16213e;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thought-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.thought-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1a1a2e;
    margin-bottom: 20px;
    font-style: italic;
}

.thought-attribution {
    text-align: right;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 60px 20px;
}

/* Closing Section */
.closing-section {
    background-color: #1a1a2e;
    color: #fff;
    planguage-switcher {
        top: 15px;
        right: 15px;
    }
    
    .lang-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .adding: 40px 0;
    text-align: center;
}

.closing-text {
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    opacity: 0.9;
}

/* reCAPTCHA Notice */
.recaptcha-notice {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    line-height: 1.4;
}

.recaptcha-notice a {
    color: #16213e;
    text-decoration: none;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .intro-text {
        font-size: 0.95rem;
    }
    
    .cta-button {
        padding: 14px 36px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-image {
        width: 150px;
        height: 150px;
    }
    
    .thought-card {
        padding: 20px;
    }
    
    .thought-text {
        font-size: 1rem;
    }
    
    .recaptcha-notice {
        font-size: 0.7rem;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .form-input,
    .form-textarea {
        font-size: 16px; /* Prevents iOS zoom */
    }
}
