/**
 * HomeProz Main Styles
 *
 * @package HomeProz
 */

// Import Tailwind
@import 'tailwind.css';

// Import component styles
@import '../template-parts/header/site-header.scss';
@import '../template-parts/footer/site-footer.scss';
@import '../template-parts/content/content-page.scss';
@import '../template-parts/content/content-card.scss';
@import '../template-parts/content/content-single.scss';
@import '../template-parts/content/content-404.scss';
@import '../template-parts/property/property-card.scss';
@import '../template-parts/property/property-filters.scss';
@import '../template-parts/property/property-gallery.scss';
@import '../template-parts/property/single-property.scss';

// ============================================
// CSS Custom Properties (Design Tokens)
// ============================================

:root {
    // Colors
    --color-bg-dark: #0A0A0A;
    --color-bg-card: #161616;
    --color-accent: #9F3730;
    --color-accent-hover: #C8473F;
    --color-accent-light: #BF524B;
    --color-text: #F5F5F5;
    --color-text-muted: #B0B0B0;
    --color-border: #2A2A2A;
    --color-success: #2E7D32;
    --color-warning: #F9A825;
    --color-sold: #757575;

    // Typography
    --font-display: 'Abril Fatface', Georgia, serif;
    --font-body: 'Inter', 'Droid Sans', Arial, sans-serif;

    // Spacing
    --container-max: 1200px;
    --container-padding: 1.5rem;

    // Transitions (minimal, only functional)
    --transition-fast: 150ms ease;
}

// ============================================
// Base Styles
// ============================================

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-muted);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

// ============================================
// Typography
// ============================================

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-text);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent-light);
    text-decoration: none;

    &:hover {
        color: var(--color-accent-hover);
    }
}

// ============================================
// Layout
// ============================================

.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.site-main {
    min-height: 50vh;
    padding: 2rem 0;
}

// ============================================
// Components
// ============================================

// Buttons
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;

    &-primary {
        background-color: var(--color-accent);
        color: white;

        &:hover {
            background-color: var(--color-accent-hover);
            color: white;
        }
    }

    &-secondary {
        background-color: transparent;
        border: 2px solid var(--color-accent);
        color: var(--color-accent);

        &:hover {
            background-color: var(--color-accent);
            color: white;
        }
    }
}

// Status badges
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;

    &-success {
        background-color: var(--color-success);
        color: white;
    }

    &-warning {
        background-color: var(--color-warning);
        color: #000;
    }

    &-muted {
        background-color: var(--color-sold);
        color: white;
    }
}

// Cards
.card {
    background-color: var(--color-bg-card);
    border-radius: 0.5rem;
    overflow: hidden;
}

// ============================================
// Forms
// ============================================

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 0.25rem;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;

    &::placeholder {
        color: var(--color-sold);
    }

    &:focus {
        outline: none;
        border-color: var(--color-accent);
    }
}

// ============================================
// Utility Classes
// ============================================

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.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;
}

// ============================================
// WordPress Core Styles
// ============================================

.alignwide {
    max-width: calc(var(--container-max) + 200px);
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

// ============================================
// Responsive
// ============================================

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
}
