/* Base and Reset */
:root {
    --primary-color: #ff8fb3; /* Pastel Pink */
    --primary-hover: #ff75a0;
    --secondary-color: #00c2cb; /* Pastel Blue */
    --secondary-hover: #00b0b9;
    --accent-color: #ffde7d; /* Pastel Yellow */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-color: #fcfcfc;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(255, 143, 179, 0.2);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Kanit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
}

h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.highlight {
    color: var(--primary-color);
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Kanit', sans-serif;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    box-shadow: 0 8px 15px rgba(255, 143, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(255, 143, 179, 0.4);
}

.btn-secondary {
    background-color: #00c300; /* LINE Green */
    color: var(--white);
    box-shadow: 0 8px 15px rgba(0, 195, 0, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 195, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Effects */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.glassmorphism-hover {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.glassmorphism-hover:hover {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    animation: glow 3s infinite linear;
}

@keyframes glow {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.bounce-effect {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(252, 252, 252, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background: radial-gradient(circle at top right, #fff0f5 0%, #fcfcfc 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,143,179,0.2), rgba(0,194,203,0.1));
    filter: blur(80px);
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255, 143, 179, 0.15);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.trust-indicators {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.trust-item i {
    color: var(--secondary-color);
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-text strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.card-text span {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
    color: var(--white);
    transform: rotate(-5deg);
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    transform: rotate(0deg) scale(1.1);
}

.bg-pink { background: linear-gradient(135deg, #ff8fb3, #ff6b9a); }
.bg-blue { background: linear-gradient(135deg, #00c2cb, #00a4ac); }
.bg-yellow { background: linear-gradient(135deg, #ffde7d, #f5c83d); color: var(--text-dark); }

/* Steps Section */
.bg-light {
    background-color: var(--bg-light);
}

.steps {
    padding: 100px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: dashed 2px var(--primary-color);
    z-index: 0;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-sm);
}

/* CTA Section */
.bottom-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #ff8fb3, #00c2cb);
    position: relative;
}

.cta-container {
    text-align: center;
    padding: 60px 40px;
    border-radius: 24px;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.85);
}

.cta-container h2 {
    margin-bottom: 16px;
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 32px;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #aaa;
}

.footer-links h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: #aaa;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .trust-indicators {
        justify-content: center;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}

/* Catalog Section */
.catalog-section {
    padding: 80px 0;
}

.catalog-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 50px;
    width: 100%;
    max-width: 500px;
}

.search-box i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-box input {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    width: 100%;
    outline: none;
    font-family: 'Kanit', sans-serif;
    color: var(--text-dark);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.plate-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.plate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.plate-category {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.plate-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.plate-price {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.plate-card .btn {
    width: 100%;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid #eee;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-family: 'Kanit', sans-serif;
}

.page-btn:hover:not(:disabled) {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* License Plate Graphic */
.license-plate-graphic {
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to bottom, #ffffff, #f0f0f0);
}

.license-plate-graphic::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    pointer-events: none;
}

.lp-top {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000;
    line-height: 1.1;
    letter-spacing: 1px;
}

.lp-bottom {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    margin-top: 4px;
}

/* Details Page specific */
.details-section {
    padding: 120px 0 80px;
}

.details-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    border-radius: 24px;
}

.details-card .license-plate-graphic {
    max-width: 300px;
    padding: 16px 20px;
}

.details-card .lp-top {
    font-size: 3rem;
}

.details-card .lp-bottom {
    font-size: 1.2rem;
}

.details-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 20px 0;
}

.details-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

/* Category Select Dropdown */
.category-select {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-family: 'Kanit', sans-serif;
    color: var(--primary-color);
    outline: none;
    cursor: pointer;
    padding-right: 12px;
    border-right: 2px solid rgba(0,0,0,0.1);
    margin-right: 12px;
    font-weight: 600;
}

.category-select option {
    color: var(--text-dark);
    font-weight: 400;
}

/* Numerology Styles */
.plate-card {
    position: relative;
}

.lucky-card {
    border: 2px solid var(--accent-color);
    background: linear-gradient(180deg, rgba(255, 222, 125, 0.1) 0%, #ffffff 100%);
}

.lucky-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, #ffde7d, #f5c83d);
    color: var(--text-dark);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
    border: 2px solid #fff;
}

.lucky-meaning-box {
    background: linear-gradient(135deg, rgba(255, 222, 125, 0.2), rgba(245, 200, 61, 0.1));
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: left;
}

.lucky-badge-large {
    display: inline-block;
    background: linear-gradient(135deg, #ffde7d, #f5c83d);
    color: var(--text-dark);
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1.2rem;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.lucky-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Social Icons Navbar */
.social-icon {
    font-size: 2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}
.fb-icon {
    color: #1877F2;
}
.line-icon {
    color: #00B900;
}

/* Removed .fb-iframe since using JS SDK */

@media (max-width: 576px) {
    .hide-on-mobile {
        display: none !important;
    }
}
