/* WordPress-Compatible Styles for Perla Heights Theme
   This file contains all the original CSS styles adapted for WordPress */

/* Import original styles with WordPress compatibility */
@import url('../../index.css');

/* WordPress-specific overrides and additions */

/* Reset WordPress defaults that might interfere */
.site-header,
.site-footer,
.site-main {
    margin: 0;
    padding: 0;
    border: none;
}

/* Navigation adjustments for WordPress */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-container img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

/* WordPress menu adjustments */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.3s ease;
}

.main-menu a:hover {
    color: #c5a059;
}

/* Mobile menu adjustments */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* WordPress body classes for styling */
.one-page-layout {
    overflow-x: hidden;
}

/* Section styling */
.site-main {
    margin-top: 72px; /* Account for fixed header */
}

section {
    scroll-margin-top: 80px; /* For smooth scrolling to sections */
}

/* Hero section adjustments */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Template part containers */
.template-part {
    width: 100%;
    padding: 4rem 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .menu-container {
        display: none; /* Hide on mobile, will be shown in mobile menu */
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* WordPress widget areas */
.footer-widget {
    margin-bottom: 2rem;
}

.widget-title {
    color: #c5a059;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* WordPress comment styles */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

/* WordPress form styles */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input[type="submit"] {
    background: linear-gradient(135deg, #c5a059, #e6c87a);
    color: #0f1115;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.3);
}

/* WordPress search form */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.search-field {
    flex-grow: 1;
}

/* WordPress pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 3rem 0;
}

.page-numbers {
    padding: 10px 16px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: #c5a059;
    color: #0f1115;
    border-color: #c5a059;
}

.page-numbers:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #c5a059;
}

/* WordPress gallery styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-icon img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-icon img {
    transform: scale(1.05);
}

/* WordPress accessibility */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 100000;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* WordPress admin bar adjustments */
body.admin-bar .site-header {
    top: 32px; /* Account for admin bar */
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px; /* Account for mobile admin bar */
    }
}

/* Custom scrollbar for modern browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Remove default WordPress styles that might conflict */
.wp-caption {
    max-width: 100%;
}

.aligncenter {
    display: block;
    margin: 2rem auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

/* WordPress block editor styles compatibility */
.wp-block {
    margin-bottom: 2rem;
}

/* Custom CSS variables for easy theming */
:root {
    --primary-color: #c5a059;
    --secondary-color: #0f1115;
    --text-color: #ffffff;
    --muted-color: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.2);
    --bg-color: #0f1115;
    --overlay-bg: rgba(0, 0, 0, 0.7);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #ffffff;
        --muted-color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .hero-video video {
        animation: none !important;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}