/* Frontend Styles for Massage Shop CMS */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Sriracha&display=swap');

/* General Styles */
body {
    font-family: var(--font-family, 'Kanit, sans-serif');
    font-size: var(--font-size, 16px);
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    backdrop-filter: blur(5px);
}

.slide-content h1 {
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color, #333);
}

section .lead {
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Masseur Cards */
.masseur-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.masseur-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.masseur-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.masseur-card:hover .card-img-top {
    transform: scale(1.05);
}

.masseur-card .card-title {
    font-weight: bold;
    color: var(--primary-color, #333);
}

.masseur-card .rating {
    color: #ffc107;
}

.masseur-card .rating i {
    font-size: 0.9rem;
}

/* Review Cards */
.review-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color, #007bff);
}

.review-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.review-card .rating {
    color: #ffc107;
}

.review-card .rating i {
    font-size: 0.8rem;
}

/* News Cards */
.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

.news-card .card-title {
    font-weight: bold;
    color: var(--primary-color, #333);
}

/* Contact Section */
.contact-item {
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.contact-item i {
    color: var(--primary-color, #007bff);
}

.contact-item h5 {
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #2c3e50 !important;
}

footer h5 {
    font-weight: bold;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-content {
        padding: 20px;
        margin: 20px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content .lead {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .masseur-card .card-img-top {
        height: 200px;
    }
    
    .news-card .card-img-top {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }
    
    .slide-content {
        padding: 15px;
        margin: 15px;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .slide-content .lead {
        font-size: 0.9rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    section .lead {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color, #007bff);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color, #888);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color, #555);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color, #007bff);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .slider-control,
    .slider-indicators,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .slide {
        display: none !important;
    }
}
