/*
Theme Name: NgheNail
Theme URI: https://nghenail.com
Author: NgheNail Team
Author URI: https://nghenail.com
Description: A modern WordPress theme for nail salon business
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nghenail
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Import Bootstrap 5.3 CSS */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* Reset & Base Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Header Styles */
.top-header {
    font-size: 0.9rem;
}

.top-header .contact-info a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.top-header .social-links a {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.top-header .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.site-header {
    position: relative;
    z-index: 1000;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: block;
    max-width: 200px;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: #333;
}

.header-actions .btn-link {
    padding: 0.5rem;
    font-size: 1.2rem;
}

.header-actions .btn-link:hover {
    color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
}

.navbar-dark .navbar-nav .active > .nav-link {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer Styles */
.site-footer {
    margin-top: 3rem;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget .widget-title {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget ul li a:hover {
    color: #fff;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    z-index: 99;
}

/* Utility Classes */
.bg-darker {
    background-color: #1a1a1a;
}

.text-primary {
    color: #007bff !important;
}

.bg-primary {
    background-color: #007bff !important;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.25rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .header-actions {
        margin-top: 1rem;
    }

    .states-list {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .site-header {
        text-align: center;
    }

    .site-branding {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .header-actions {
        justify-content: center;
    }

    .top-header .contact-info,
    .top-header .social-links {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .footer-widget {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Custom Components */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Advertisement Styles */
.advertisement-card {
    border: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.advertisement-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* User Dashboard */
.dashboard-sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Custom Utilities */
.text-secondary { color: var(--secondary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }
.bg-info { background-color: var(--info-color) !important; }
.text-light { color: var(--light-color) !important; }
.bg-light { background-color: var(--light-color) !important; }
.text-dark { color: var(--dark-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }

/* Custom styles will be added here */

/* States Menu */
.states-menu {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.states-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.state-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    color: #666;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.state-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Search Modal */
.modal-content {
    border: none;
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.modal-body {
    padding: 1.5rem;
}

.search-form .input-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-form .form-control {
    border-right: none;
    padding: 0.75rem 1rem;
}

.search-form .btn {
    padding: 0.75rem 1.5rem;
}

/* Logo Styles */
.custom-logo {
    max-width: 200px;
    height: auto;
}

/* States Dropdown Menu */
.states-dropdown {
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-item.dropdown:hover .states-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.states-dropdown .dropdown-item {
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.states-dropdown .dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Custom Scrollbar for States Dropdown */
.states-dropdown::-webkit-scrollbar {
    width: 6px;
}

.states-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.states-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.states-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

img.img-fluid.rounded {
    width: 100%;
    aspect-ratio: 27 / 20;
    object-fit: cover;
}

/* Responsive Styles for States Dropdown */
@media (max-width: 991.98px) {
    .states-dropdown {
        width: 100%;
        max-height: 300px;
        grid-template-columns: 1fr;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
	button#back-to-top {     display: none !important; }
} 
