/* 
 * เลขาน้อย Main CSS 
 * Marketing Website Styles
 * Focus: Thai language, reminders, expense tracking
 */

/* === BASE STYLES === */
body {
    font-family: 'Sarabun', sans-serif;
    background-color: #FDFDFD;
    color: #4A5568;
    line-height: 1.6;
}

/* === HEADER === */
.header-bg {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

/* === HERO SECTION === */
.hero-gradient {
    background: linear-gradient(135deg, #FFEDD5 0%, #FEF3C7 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FDE68A' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 30v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

/* === TYPOGRAPHY === */
.primary-heading {
    font-family: 'Mitr', sans-serif;
    font-weight: 700;
    color: #2D3748;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.secondary-heading {
    font-family: 'Mitr', sans-serif;
    font-weight: 600;
    color: #2D3748;
    line-height: 1.3;
}

/* === BUTTONS === */
.primary-button {
    background-color: #F6AD55;
    color: white;
    border-radius: 9999px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-family: 'Mitr', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(246, 173, 85, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.primary-button:hover {
    background-color: #ED8936;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(237, 137, 54, 0.5);
    color: white;
    text-decoration: none;
}

.primary-button:active {
    transform: translateY(-1px);
}

/* === CARDS === */
.feature-card {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.character-card {
    background: #FFFFFF;
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    display: block;
}

.character-card:hover {
    border-color: #F6AD55;
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(246, 173, 85, 0.2);
    text-decoration: none;
    color: inherit;
}

/* === ICONS === */
.icon-bg-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FEEBCF;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(254, 235, 207, 0.6);
}

.icon-bg-circle svg {
    color: #ED8936;
    width: 32px;
    height: 32px;
}

/* === TECH LOGOS === */
.tech-logo {
    filter: grayscale(80%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tech-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .primary-heading {
        font-size: 2rem;
        line-height: 1.3;
    }

    .secondary-heading {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .primary-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .character-card {
        padding: 1rem;
    }

    .icon-bg-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .icon-bg-circle svg {
        width: 24px;
        height: 24px;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for better accessibility */
.primary-button:focus,
.character-card:focus {
    outline: 2px solid #F6AD55;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-gradient {
        background: #FFFFFF;
    }

    .feature-card,
    .character-card {
        border-width: 2px;
        border-color: #000000;
    }
}