/*
Theme Name: Bellsempire Theme
Theme URI: https://bellsempire.com
Author: Bellsempire
Description: Custom theme with glass morphism, particle animations, skin switching, and custom footer.
Version: 1.0
*/

/* Basic reset – your existing site styles will remain intact */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Chonburi', cursive;
    background: #f8faff;
    color: #0a1928;
    transition: background 0.3s, color 0.3s;
}

/* Sticky header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header layout */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #0a58ca;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    max-height: 50px;
    width: auto;
}

/* Top line on mobile */
.header-top-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Skin buttons + sign in/up */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.skin-btn {
    background: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 40px;
    transition: 0.2s;
    backdrop-filter: blur(4px);
}

.skin-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.sign-btn {
    background: linear-gradient(135deg, #0a58ca, #3b82f6);
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    display: inline-block;
    font-size: 1rem;
    white-space: nowrap;
}

.sign-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Navigation menu */
.main-menu {
    width: 100%;
    margin-top: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.main-menu ul {
    display: flex;
    gap: 25px;
    list-style: none;
    flex-wrap: nowrap;
    padding: 10px 0 5px;
    margin: 0;
    white-space: nowrap;
}

.main-menu a {
    text-decoration: none;
    font-weight: 500;
    color: #1e293b;
    transition: 0.2s;
    position: relative;
    white-space: nowrap;
}

.main-menu a:hover {
    color: #0a58ca;
}

/* Hide scrollbar for cleaner look (optional) */
.main-menu::-webkit-scrollbar {
    height: 4px;
}
.main-menu::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}
.main-menu::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

/* Responsive */
@media (min-width: 768px) {
    .header-inner {
        flex-wrap: nowrap;
    }
    .header-top-line {
        width: auto;
        gap: 30px;
    }
    .main-menu {
        width: auto;
        margin-top: 0;
        margin-left: auto;
        overflow-x: visible;
    }
    .main-menu ul {
        flex-wrap: wrap;
        white-space: normal;
        margin: 0;
    }
}

/* Particle canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-col p {
    line-height: 1.5;
    color: #2c3e50;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    transition: 0.2s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

/* Form styles */
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    font-family: inherit;
}

.contact-form button {
    background: #0a58ca;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

.contact-form button:hover {
    background: #0b5ed7;
}

.form-message {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Skin 2 (multicolor flow) */
body.skin-2 {
    background: linear-gradient(270deg, #ff6a00, #ee0979, #0a58ca);
    background-size: 600% 600%;
    animation: gradientFlow 8s ease infinite;
}

body.skin-2 .header,
body.skin-2 .footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Make white logo visible on light background */
.logo img {
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.3));
}

/* For skin-2 background, ensure logo stands out */
body.skin-2 .logo img {
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.8));
}

/* Default content spacing for non‑Brizy pages */
#content {
    min-height: 60vh;
}

/* If the page does NOT have Brizy classes, add padding for readability */
:not(.brz) #content {
    padding: 40px 20px;
}

/* Ensure Brizy pages are not affected */
.brz #content {
    padding: 0;
}

/* ========== MOBILE ADJUSTMENTS (max-width: 767px) ========== */
@media (max-width: 767px) {
    /* Reduce header padding */
    .header-inner {
        padding: 8px 0;
    }
    
    /* Smaller logo */
    .logo img {
        max-height: 32px;
    }
    
    /* Make skin buttons smaller */
    .skin-btn {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
    
    /* Even smaller sign-in button */
    .sign-btn {
        font-size: 0.75rem;
        padding: 4px 10px;
        border-radius: 30px;
    }
    
    /* Menu container: horizontal scrollable */
    .main-menu {
        margin-top: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .main-menu ul {
        gap: 16px;
        padding: 6px 0;
    }
    .main-menu a {
        font-size: 0.8rem;
    }
    
    /* Reduce container padding */
    .container {
        padding: 0 12px;
    }
}