/* Dark Theme CSS for MD Stone */

/* Dark Theme Color Variables */
:root {
    --dark-bg-primary: #0a0a0a;
    --dark-bg-secondary: #1a1a1a;
    --dark-bg-tertiary: #2a2a2a;
    --dark-text-primary: #ffffff;
    --dark-text-secondary: #b0b0b0;
    --dark-text-muted: #808080;
    --dark-accent: #00ff88;
    --dark-accent-secondary: #00cc6a;
    --dark-accent-gold: #ffd700;
    --dark-border: #333333;
    --dark-shadow: rgba(0, 0, 0, 0.8);
    --dark-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
}

/* Featured Products Dark Theme Styles */
.dark-product-card {
    background: var(--dark-bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--dark-border);
    height: 100%;
}

.dark-product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 255, 136, 0.2);
    border-color: var(--dark-accent);
}

.product-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dark-product-card:hover .product-img {
    transform: scale(1.1);
}

.product-placeholder-dark {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-bg-tertiary), var(--dark-bg-secondary));
}

.featured-badge-dark {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--dark-accent), var(--dark-accent-secondary));
    color: var(--dark-bg-primary);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
    backdrop-filter: blur(10px);
}

.featured-badge-dark i {
    font-size: 0.7rem;
}

.category-badge-dark {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-badge-dark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--dark-accent);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid var(--dark-accent);
}

.product-info-dark {
    padding: 30px 25px 25px;
}

.product-name-dark {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: 'Playfair Display', serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc-dark {
    color: var(--dark-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features-dark {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--dark-accent);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.feature-chip.self-adhesive {
    background: rgba(255, 215, 0, 0.1);
    color: var(--dark-accent-gold);
    border-color: rgba(255, 215, 0, 0.3);
}

.feature-chip i {
    font-size: 0.7rem;
}

.product-actions-dark {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--dark-border);
}

.view-btn-dark, .quote-btn-dark {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.view-btn-dark {
    background: var(--dark-accent);
    color: var(--dark-bg-primary);
}

.view-btn-dark:hover {
    background: var(--dark-accent-secondary);
    color: var(--dark-bg-primary);
    transform: translateY(-2px);
}

.quote-btn-dark {
    background: var(--dark-bg-tertiary);
    color: var(--dark-text-primary);
    border: 1px solid var(--dark-border);
}

.quote-btn-dark:hover {
    background: var(--dark-accent);
    color: var(--dark-bg-primary);
    border-color: var(--dark-accent);
    transform: translateY(-2px);
}

/* Decorative elements */
.featured-dots-left, .featured-dots-right {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.featured-dots-left {
    top: 20%;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.featured-dots-right {
    bottom: 20%;
    right: -100px;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Responsive Design for Dark Theme */
@media (max-width: 768px) {
    .product-image-container {
        height: 220px;
    }
    
    .product-info-dark {
        padding: 20px 20px 15px;
    }
    
    .product-name-dark {
        font-size: 1.2rem;
    }
    
    .product-desc-dark {
        font-size: 0.9rem;
    }

    .product-actions-dark {
        flex-direction: column;
        gap: 8px;
    }

    .view-btn-dark, .quote-btn-dark {
        width: 100%;
    }

    .product-features-dark {
        gap: 6px;
    }

    .feature-chip {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* Global Dark Theme Overrides */
body {
    background: var(--dark-bg-primary) !important;
    color: var(--dark-text-primary) !important;
    font-family: 'Inter', sans-serif;
}

/* Dark Header Styles */
.luxury-header {
    background: var(--dark-bg-secondary) !important;
    border-bottom: 1px solid var(--dark-border) !important;
}

.luxury-top-bar {
    background: var(--dark-gradient) !important;
    border-bottom: 1px solid var(--dark-border) !important;
}

.top-bar-text {
    color: var(--dark-text-secondary) !important;
}

.social-link {
    background: rgba(0, 255, 136, 0.1) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    color: var(--dark-accent) !important;
}

.social-link:hover {
    background: var(--dark-accent) !important;
    color: var(--dark-bg-primary) !important;
}

.luxury-navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
}

.logo-main {
    color: var(--dark-accent-gold) !important;
}

.logo-sub {
    color: var(--dark-text-secondary) !important;
}

.nav-text {
    color: var(--dark-text-secondary) !important;
}

.nav-link:hover .nav-text,
.nav-link.active .nav-text {
    color: var(--dark-accent) !important;
}

.nav-line {
    background: linear-gradient(90deg, var(--dark-accent), var(--dark-accent-secondary)) !important;
}

/* Dark Dropdown Styles */
.dropdown-menu {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border) !important;
    box-shadow: 0 10px 30px var(--dark-shadow) !important;
}

.dropdown-item {
    color: var(--dark-text-secondary) !important;
    border-bottom: 1px solid var(--dark-border) !important;
}

.dropdown-item:hover {
    background: rgba(0, 255, 136, 0.1) !important;
    color: var(--dark-accent) !important;
}

/* Dark Button Styles */
.luxury-btn {
    background: linear-gradient(135deg, var(--dark-accent) 0%, var(--dark-accent-secondary) 100%) !important;
    color: var(--dark-bg-primary) !important;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4) !important;
}

.luxury-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.6) !important;
    color: var(--dark-bg-primary) !important;
}

.btn-outline-premium {
    border: 2px solid var(--dark-accent) !important;
    color: var(--dark-accent) !important;
}

.btn-outline-premium:hover {
    background: var(--dark-accent) !important;
    color: var(--dark-bg-primary) !important;
}

/* Dark Hero Section */
.hero-section {
    background: var(--dark-gradient) !important;
    color: var(--dark-text-primary) !important;
}

.luxury-main-title {
    color: var(--dark-text-primary) !important;
    text-shadow: 2px 2px 4px var(--dark-shadow) !important;
}

.luxury-subtitle {
    color: var(--dark-accent-gold) !important;
}

.luxury-description {
    color: var(--dark-text-secondary) !important;
}

/* Dark Section Styles */
.section-title {
    color: var(--dark-accent-gold) !important;
}

.section-subtitle {
    color: var(--dark-text-secondary) !important;
}

/* Dark Card Styles */
.card {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border) !important;
    color: var(--dark-text-primary) !important;
}

.card-title {
    color: var(--dark-text-primary) !important;
}

.card-text {
    color: var(--dark-text-secondary) !important;
}

/* Dark Service Cards */
.service-card {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border) !important;
    color: var(--dark-text-primary) !important;
}

.service-card h4 {
    color: var(--dark-text-primary) !important;
}

.service-card p {
    color: var(--dark-text-secondary) !important;
}

.service-icon {
    background: linear-gradient(135deg, var(--dark-accent), var(--dark-accent-secondary)) !important;
    color: var(--dark-bg-primary) !important;
}

/* Dark Product Cards */
.product-card {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border) !important;
}

.product-title {
    color: var(--dark-text-primary) !important;
}

.product-description {
    color: var(--dark-text-secondary) !important;
}

/* Dark Feature Cards */
.feature-item {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border) !important;
}

.feature-content h5 {
    color: var(--dark-text-primary) !important;
}

.feature-content p {
    color: var(--dark-text-secondary) !important;
}

/* Dark Footer */
.luxury-footer {
    background: var(--dark-gradient) !important;
    color: var(--dark-text-secondary) !important;
}

.footer-title {
    color: var(--dark-accent-gold) !important;
}

.footer-list a {
    color: var(--dark-text-secondary) !important;
}

.footer-list a:hover {
    color: var(--dark-accent) !important;
}

.contact-item i {
    color: var(--dark-accent) !important;
}

/* Dark Background Sections */
.bg-light {
    background: var(--dark-bg-secondary) !important;
}

.bg-white {
    background: var(--dark-bg-secondary) !important;
}

/* Dark Text Colors */
.text-muted {
    color: var(--dark-text-muted) !important;
}

/* Dark Form Elements */
.form-control {
    background: var(--dark-bg-tertiary) !important;
    border: 1px solid var(--dark-border) !important;
    color: var(--dark-text-primary) !important;
}

.form-control:focus {
    background: var(--dark-bg-tertiary) !important;
    border-color: var(--dark-accent) !important;
    color: var(--dark-text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25) !important;
}

.form-label {
    color: var(--dark-text-primary) !important;
}

/* Dark Modal Styles */
.modal-content {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border) !important;
}

.modal-header {
    background: linear-gradient(135deg, var(--dark-accent) 0%, var(--dark-accent-secondary) 100%) !important;
    border-bottom: 1px solid var(--dark-border) !important;
}

.modal-title {
    color: var(--dark-bg-primary) !important;
}

.modal-body {
    color: var(--dark-text-primary) !important;
}

/* Dark Accordion Styles */
.accordion-item {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border) !important;
}

.accordion-button {
    background: var(--dark-bg-secondary) !important;
    color: var(--dark-text-primary) !important;
}

.accordion-button:not(.collapsed) {
    background: var(--dark-accent) !important;
    color: var(--dark-bg-primary) !important;
}

.accordion-body {
    color: var(--dark-text-secondary) !important;
}

/* Dark Table Styles */
.table {
    color: var(--dark-text-primary) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: var(--dark-bg-tertiary) !important;
}

/* Dark Alert Styles */
.alert-success {
    background: rgba(0, 255, 136, 0.1) !important;
    border: 1px solid var(--dark-accent) !important;
    color: var(--dark-accent) !important;
}

.alert-danger {
    background: rgba(255, 0, 0, 0.1) !important;
    border: 1px solid #ff0000 !important;
    color: #ff0000 !important;
}

/* Dark Navigation Active States */
.nav-link.active {
    color: var(--dark-accent) !important;
}

/* Dark Hover Effects */
.card:hover {
    box-shadow: 0 8px 25px var(--dark-shadow) !important;
    border-color: var(--dark-accent) !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
}

/* Dark Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-accent-secondary);
}

/* Dark Selection */
::selection {
    background: var(--dark-accent);
    color: var(--dark-bg-primary);
}

/* Dark Focus States */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25) !important;
}

/* Dark Link Styles */
a {
    color: var(--dark-accent) !important;
}

a:hover {
    color: var(--dark-accent-secondary) !important;
}

/* Dark Image Overlays */
.product-overlay {
    background: rgba(0, 0, 0, 0.8) !important;
}

.catalog-overlay {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Dark Badge Styles */
.badge {
    background: var(--dark-accent) !important;
    color: var(--dark-bg-primary) !important;
}

/* Dark Progress Bars */
.progress {
    background: var(--dark-bg-tertiary) !important;
}

.progress-bar {
    background: var(--dark-accent) !important;
}

/* Dark Pagination */
.pagination .page-link {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border) !important;
    color: var(--dark-text-primary) !important;
}

.pagination .page-link:hover {
    background: var(--dark-accent) !important;
    color: var(--dark-bg-primary) !important;
}

.pagination .page-item.active .page-link {
    background: var(--dark-accent) !important;
    border-color: var(--dark-accent) !important;
    color: var(--dark-bg-primary) !important;
}

/* Dark Breadcrumb */
.breadcrumb {
    background: var(--dark-bg-tertiary) !important;
}

.breadcrumb-item a {
    color: var(--dark-accent) !important;
}

.breadcrumb-item.active {
    color: var(--dark-text-secondary) !important;
}

/* Dark List Group */
.list-group-item {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border) !important;
    color: var(--dark-text-primary) !important;
}

.list-group-item:hover {
    background: var(--dark-bg-tertiary) !important;
}

/* Dark Code Blocks */
code {
    background: var(--dark-bg-tertiary) !important;
    color: var(--dark-accent) !important;
}

pre {
    background: var(--dark-bg-tertiary) !important;
    color: var(--dark-text-primary) !important;
    border: 1px solid var(--dark-border) !important;
}

/* Dark Blockquotes */
blockquote {
    border-left: 4px solid var(--dark-accent) !important;
    background: var(--dark-bg-tertiary) !important;
    color: var(--dark-text-secondary) !important;
}

/* Dark Input Groups */
.input-group-text {
    background: var(--dark-bg-tertiary) !important;
    border: 1px solid var(--dark-border) !important;
    color: var(--dark-text-primary) !important;
}

/* Dark Custom Scrollbar for Webkit */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--dark-bg-secondary);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--dark-accent);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--dark-accent-secondary);
}

/* Dark Theme Animations */
@keyframes darkGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    }
}

.dark-glow {
    animation: darkGlow 2s ease-in-out infinite;
}

/* Dark Theme Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Dark Theme Responsive Adjustments */
@media (max-width: 768px) {
    .luxury-main-title {
        font-size: 2.5rem !important;
    }
    
    .luxury-subtitle {
        font-size: 1.5rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .luxury-main-title {
        font-size: 2rem !important;
    }
    
    .luxury-subtitle {
        font-size: 1.2rem !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
}

/* Pool Models Section Styles */
.section-pool-models {
    background: #ffffff;
    padding: 80px 0;
}

.pool-model-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pool-model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pool-model-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.pool-model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pool-model-card:hover .pool-model-image img {
    transform: scale(1.05);
}

.pool-model-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pool-model-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.pool-model-depth {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pool-model-description {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.btn-pool-more {
    background: #333333;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-pool-more:hover {
    background: #555555;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Catalog Section Styles */
.section-catalog {
    background: #ffffff;
    padding: 80px 0;
}

.catalog-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
}

.catalog-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.catalog-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e9ecef;
    overflow: hidden;
}

.catalog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-img {
    transform: scale(1.05);
}

.catalog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.catalog-depth {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog-description {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
    font-size: 0.95rem;
}

.catalog-btn {
    background: #333333;
    color: #00ff88;
    border: none;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: all 0.3s ease;
    align-self: flex-start;
    cursor: pointer;
}

.catalog-btn:hover {
    background: #555555;
    color: #00ff88;
    transform: translateY(-2px);
}

/* Catalog Section Responsive */
@media (max-width: 768px) {
    .catalog-content {
        padding: 20px;
    }
    
    .catalog-title {
        font-size: 1.3rem;
    }
    
    .catalog-heading {
        font-size: 2rem;
    }
    
    .section-catalog {
        padding: 60px 0;
    }
    
    .catalog-image {
        height: 150px;
    }
}
