/* =================================================================
   WiseOwled Coming Soon Page - Premium Minimalist Styles
   ================================================================= */

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

body {
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* =================================================================
   THEME VARIABLES - Light Mode (Default)
   ================================================================= */
:root {
    /* Colors */
    --bg-primary: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    --bg-secondary: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --accent-primary: #4A90E2;
    --accent-secondary: #2E5A8E;
    --accent-hover: #357ABD;
    
    /* Card backgrounds */
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-shadow: rgba(0, 0, 0, 0.1);
    
    /* Input styles */
    --input-bg: #FFFFFF;
    --input-border: #E2E8F0;
    --input-focus: #4A90E2;
    
    /* Countdown */
    --flip-bg: #FFFFFF;
    --flip-shadow: rgba(0, 0, 0, 0.15);
    
    /* Header */
    --header-bg: rgba(248, 250, 252, 0.8);
}

/* =================================================================
   DARK MODE VARIABLES
   ================================================================= */
body.dark-mode {
    --bg-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --bg-secondary: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --accent-primary: #60A5FA;
    --accent-secondary: #3B82F6;
    --accent-hover: #93C5FD;
    
    --card-bg: rgba(30, 41, 59, 0.8);
    --card-shadow: rgba(0, 0, 0, 0.3);
    
    --input-bg: #334155;
    --input-border: #475569;
    --input-focus: #60A5FA;
    
    --flip-bg: #334155;
    --flip-shadow: rgba(0, 0, 0, 0.4);
    
    --header-bg: rgba(15, 23, 42, 0.8);
}

/* =================================================================
   GLOBAL STYLES
   ================================================================= */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--input-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Hide scrollbar for carousel */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =================================================================
   HEADER STYLES
   ================================================================= */
header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--input-border);
}

.logo-fill {
    fill: var(--accent-primary);
}

.brand-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline-text {
    color: var(--text-secondary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    color: var(--accent-primary);
    box-shadow: 0 4px 6px var(--card-shadow);
}

.theme-toggle:hover {
    box-shadow: 0 6px 12px var(--card-shadow);
}

body.dark-mode .sun-icon {
    display: none;
}

body.dark-mode .moon-icon {
    display: block !important;
}

body:not(.dark-mode) .moon-icon {
    display: none;
}

/* =================================================================
   HERO SECTION
   ================================================================= */
.hero-section {
    position: relative;
}

.hero-title {
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =================================================================
   COUNTDOWN TIMER - Flip Card Style
   ================================================================= */
.countdown-container {
    perspective: 1000px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.flip-card {
    background: var(--flip-bg);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 16px var(--flip-shadow);
    min-width: 80px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--input-border);
    transition: all 0.3s ease;
}

.flip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px var(--flip-shadow);
}

.flip-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    line-height: 1;
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Flip animation */
.flip-card.flipping {
    animation: flip 0.6s ease-in-out;
}

@keyframes flip {
    0%, 100% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
}

/* Responsive countdown */
@media (max-width: 768px) {
    .countdown-container {
        padding: 0 1.5rem;
    }
    
    .flip-card {
        padding: 1rem 1.5rem;
        min-width: 60px;
    }
    
    .flip-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .countdown-container {
        padding: 0 1rem;
        gap: 0.5rem !important;
    }
    
    .flip-card {
        padding: 0.75rem 1rem;
        min-width: 50px;
    }
    
    .flip-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
}

/* =================================================================
   NOTIFY ME FORM
   ================================================================= */
.notify-input {
    background: var(--input-bg);
    color: var(--text-primary);
    border: 2px solid var(--input-border);
}

.notify-input::placeholder {
    color: var(--text-secondary);
}

.notify-input:focus {
    border-color: var(--input-focus);
    ring-color: var(--input-focus);
}

.notify-button {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px var(--card-shadow);
}

.notify-button:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
}

/* =================================================================
   CARD SECTIONS (Thought, Quiz, Feedback)
   ================================================================= */
.thought-card,
.quiz-card,
.feedback-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--input-border);
    box-shadow: 0 8px 32px var(--card-shadow);
    transition: all 0.3s ease;
}

.thought-card:hover,
.quiz-card:hover,
.feedback-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px var(--card-shadow);
}

.thought-text {
    color: var(--text-primary);
}

/* =================================================================
   QUIZ STYLES
   ================================================================= */
.quiz-option {
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
}

.quiz-option:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
    transform: scale(1.02);
}

.quiz-option.selected {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
}

.quiz-option.correct {
    border-color: #10B981;
    background: #10B981;
    color: white;
}

.quiz-option.incorrect {
    border-color: #EF4444;
    background: #EF4444;
    color: white;
}

.quiz-option.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#quizResult {
    border-radius: 1rem;
    font-weight: 500;
}

#quizResult.correct {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10B981;
    color: #10B981;
}

#quizResult.incorrect {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #EF4444;
    color: #EF4444;
}

/* Hexagon Scorecard Styles - Floating Position */
.hexagon-scorecard-wrapper {
    position: absolute;
    top: -20px;
    right: 20px;
    z-index: 10;
}

.hexagon-scorecard {
    position: relative;
    width: 140px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatBounce 3s ease-in-out infinite;
}

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

.hexagon-scorecard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.hexagon-scorecard:hover {
    animation-play-state: paused;
}

.hexagon-scorecard:hover::before {
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
    transform: scale(1.08);
}

.hexagon-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scorecard-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.scorecard-score {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.next-question-btn {
    box-shadow: 0 4px 12px var(--card-shadow);
}

.next-question-btn:hover {
    box-shadow: 0 6px 20px var(--accent-primary);
}

/* Responsive hexagon scorecard */
@media (max-width: 768px) {
    .hexagon-scorecard-wrapper {
        top: -15px;
        right: 15px;
    }
    
    .hexagon-scorecard {
        width: 120px;
        height: 100px;
    }
    
    .scorecard-label {
        font-size: 0.65rem;
    }
    
    .scorecard-score {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .hexagon-scorecard-wrapper {
        top: -10px;
        right: 10px;
    }
    
    .hexagon-scorecard {
        width: 100px;
        height: 85px;
    }
    
    .scorecard-label {
        font-size: 0.6rem;
    }
    
    .scorecard-score {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hexagon-scorecard-wrapper {
        position: relative;
        top: 0;
        right: 0;
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .hexagon-scorecard {
        width: 90px;
        height: 75px;
    }
    
    .scorecard-label {
        font-size: 0.55rem;
    }
    
    .scorecard-score {
        font-size: 1.25rem;
    }
}

/* =================================================================
   BLOG CAROUSEL
   ================================================================= */
.blog-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--input-border);
    box-shadow: 0 4px 24px var(--card-shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--card-shadow);
}

.blog-icon {
    color: var(--accent-primary);
}

.blog-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-link {
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: var(--accent-hover);
    gap: 0.75rem;
}

/* =================================================================
   FEEDBACK FORM
   ================================================================= */
.feedback-input {
    background: var(--input-bg);
    color: var(--text-primary);
    border: 2px solid var(--input-border);
}

.feedback-input::placeholder {
    color: var(--text-secondary);
}

.feedback-input:focus {
    border-color: var(--input-focus);
    ring-color: var(--input-focus);
}

.feedback-button {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px var(--card-shadow);
}

.feedback-button:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--input-border);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--card-shadow);
}

/* =================================================================
   ANIMATIONS
   ================================================================= */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Slide up animation */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Hero section specific animation - more reliable */
@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    animation: heroFadeIn 0.8s ease-out forwards;
}

/* Fade in section with intersection observer */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for notify button */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px var(--card-shadow);
    }
    50% {
        box-shadow: 0 4px 20px var(--accent-primary);
    }
}

.notify-button:hover {
    animation: pulse 2s infinite;
}

/* Success animation */
@keyframes successPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-animation {
    animation: successPop 0.5s ease-out;
}

/* Success card */
.success-card {
    background: var(--card-bg);
    border: 2px solid #10B981;
}

/* =================================================================
   RESPONSIVE UTILITIES
   ================================================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .countdown-container {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .thought-card,
    .quiz-card,
    .feedback-card {
        padding: 2rem 1.5rem;
    }
}

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

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* =================================================================
   BLOG STYLES
   ================================================================= */

/* Blog index page */
.blog-article-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--input-border);
    box-shadow: 0 4px 24px var(--card-shadow);
    transition: all 0.3s ease;
}

.blog-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px var(--card-shadow);
}

.article-image-container {
    overflow: hidden;
}

.article-image {
    transition: transform 0.3s ease;
}

.blog-article-card:hover .article-image {
    transform: scale(1.05);
}

.article-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.article-date, .article-read-time {
    color: var(--text-secondary);
}

.article-title-link {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.article-title-link:hover {
    color: var(--accent-primary);
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-read-more {
    color: var(--accent-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-read-more:hover {
    color: var(--accent-hover);
    gap: 0.75rem;
}

/* Newsletter section */
.newsletter-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--input-border);
    box-shadow: 0 8px 32px var(--card-shadow);
}

.newsletter-input {
    background: var(--input-bg);
    color: var(--text-primary);
    border: 2px solid var(--input-border);
}

.newsletter-input:focus {
    border-color: var(--input-focus);
}

.newsletter-button {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px var(--card-shadow);
}

.newsletter-button:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
}

/* Blog article page */
.article-page {
    color: var(--text-primary);
}

.back-link {
    font-weight: 500;
}

.article-meta-large {
    color: var(--text-secondary);
}

.article-content {
    color: var(--text-primary);
    line-height: 1.8;
}

.article-content .lead-paragraph {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.article-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.article-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.article-content a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--accent-hover);
}

/* Tags */
.tag {
    display: inline-block;
    background: var(--input-bg);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid var(--input-border);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* Share buttons */
.share-button {
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
    border: 1px solid var(--input-border);
}

.share-button:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--card-shadow);
}

/* Related articles */
.related-article-card {
    background: var(--card-bg);
    border: 1px solid var(--input-border);
    transition: all 0.3s ease;
}

.related-article-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px var(--card-shadow);
}

/* =================================================================
   PRINT STYLES
   ================================================================= */
@media print {
    header,
    footer,
    .theme-toggle,
    .share-buttons,
    .related-articles {
        display: none;
    }
    
    .article-content {
        max-width: 100%;
    }
}

