/* 4b Emlak - Main Styles */
:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    --secondary-50: #f8fafc;
    --secondary-100: #f1f5f9;
    --secondary-200: #e2e8f0;
    --secondary-300: #cbd5e1;
    --secondary-400: #94a3b8;
    --secondary-500: #64748b;
    --secondary-600: #475569;
    --secondary-700: #334155;
    --secondary-800: #1e293b;
    --secondary-900: #0f172a;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Utility Classes */
.btn-primary {
    background: var(--primary-600);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-600);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid var(--primary-600);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--secondary-50);
    transform: scale(1.05);
}

.section-padding {
    padding: 80px 16px;
}

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease, transform 0.3s ease;
    background: transparent;
    transform: translateY(0);
}

.header-scrolled {
    background: white !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bg-transparent {
    background: transparent !important;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-menu.open {
    max-height: 500px;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    resize: none;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Card Styles */
.property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.property-card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

/* Alert Styles */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #16a34a;
    color: #15803d;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #dc2626;
    color: #dc2626;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsive Typography */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-padding {
        padding: 60px 16px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 769px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FAQ Styles */
.faq-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--secondary-50);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--secondary-600);
    line-height: 1.6;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-600);
    transition: transform 0.3s ease;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 32px;
    border: 1px solid #f1f5f9;
}

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 16px;
    margin-top: 24px;
    line-height: 1.4;
}

.content-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
    margin-top: 20px;
    line-height: 1.4;
}

.content-section p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1rem;
}

.content-section ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-section li {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 1rem;
}

.content-section strong {
    color: #334155;
    font-weight: 600;
}

.content-section a {
    color: #0284c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 32px;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-2 > * + * {
    margin-left: 8px;
}

.space-x-4 > * + * {
    margin-left: 16px;
}

.space-y-2 > * + * {
    margin-top: 8px;
}

.space-y-4 > * + * {
    margin-top: 16px;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* Color Utilities */
.text-gray-600 {
    color: var(--secondary-600);
}

.text-gray-700 {
    color: var(--secondary-700);
}

.text-gray-900 {
    color: var(--secondary-900);
}

.text-primary-600 {
    color: var(--primary-600);
}

.text-white {
    color: white;
}

/* Background Utilities */
.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: var(--secondary-50);
}

.bg-gray-900 {
    background-color: var(--secondary-900);
}

.bg-primary-600 {
    background-color: var(--primary-600);
}

.bg-primary-100 {
    background-color: var(--primary-100);
}

/* Margin & Padding */
.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

.p-4 {
    padding: 16px;
}

.p-6 {
    padding: 24px;
}

.p-8 {
    padding: 32px;
}

.py-4 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.py-8 {
    padding-top: 32px;
    padding-bottom: 32px;
}

.py-12 {
    padding-top: 48px;
    padding-bottom: 48px;
}

.py-16 {
    padding-top: 64px;
    padding-bottom: 64px;
}

.py-20 {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Border Utilities */
.border {
    border-width: 1px;
    border-style: solid;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-gray-800 {
    border-color: var(--secondary-800);
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-2xl {
    border-radius: 16px;
}

/* Shadow Utilities */
.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Transition Utilities */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* Hover Effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:bg-gray-50:hover {
    background-color: var(--secondary-50);
}

.hover\:text-white:hover {
    color: white;
}

.hover\:text-primary-600:hover {
    color: var(--primary-600);
}

/* Display Utilities */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Position Utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

/* Z-index Utilities */
.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Width & Height Utilities */
.w-full {
    width: 100%;
}

.h-64 {
    height: 256px;
}

.h-10 {
    height: 40px;
}

.w-10 {
    width: 40px;
}

.w-6 {
    width: 24px;
}

.h-6 {
    height: 24px;
}

.w-12 {
    width: 48px;
}

.h-12 {
    height: 48px;
}

/* Object Fit */
.object-cover {
    object-fit: cover;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* List Styles */
.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

/* Responsive Display */
@media (max-width: 768px) {
    .md\:hidden {
        display: none;
    }
}

@media (min-width: 769px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
