/**
 * Halı Saha Widget Styles
 * Beyaz tema, kırmızı accent - light mode
 * Premium tasarım
 */

/* CSS Variables (defaults, overridden by widget) */
:root {
    --hs-primary: #E31E24;
    --hs-primary-hover: #c91a1f;
    --hs-secondary: #2d2d2d;
    --hs-modal-bg: #ffffff;
    --hs-modal-overlay: rgba(0, 0, 0, 0.6);
    --hs-modal-radius: 20px;
    --hs-modal-width: 700px;
    --hs-btn-radius: 8px;
    --hs-overlay-color: rgba(0, 0, 0, 0.3);
}

/* ===== CONTAINER ===== */
.hs-container {
    width: 100%;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hs-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

/* ===== GRID ===== */
.hs-grid {
    display: grid;
    gap: 24px;
}

.hs-cols-1 {
    grid-template-columns: 1fr;
}

.hs-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hs-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hs-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .hs-cols-tablet-1 {
        grid-template-columns: 1fr;
    }

    .hs-cols-tablet-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hs-cols-tablet-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .hs-cols-mobile-1 {
        grid-template-columns: 1fr;
    }

    .hs-cols-mobile-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== CARD - BEYAZ TEMA ===== */
.hs-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 2px solid #e8e8e8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hs-card:hover {
    border-color: var(--hs-primary);
}

/* Hover Effects */
.hs-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 0 0 2px var(--hs-primary);
    border-color: var(--hs-primary);
}

.hs-hover-scale:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--hs-primary);
}

.hs-hover-glow:hover {
    box-shadow:
        0 0 30px rgba(227, 30, 36, 0.2),
        0 0 60px rgba(227, 30, 36, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--hs-primary);
}

/* ===== CARD IMAGE ===== */
.hs-card-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.hs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hs-card:hover .hs-card-image img {
    transform: scale(1.08);
}

.hs-card-image.has-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--hs-overlay-color) 100%);
    pointer-events: none;
}

/* Price Badge */
.hs-price-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--hs-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(227, 30, 36, 0.4);
    z-index: 2;
}

/* ===== CARD CONTENT ===== */
.hs-card-content {
    padding: 20px;
}

.hs-card-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* ===== INFO ITEMS ===== */
.hs-card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.hs-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

.hs-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--hs-primary);
    margin-top: 2px;
}

.hs-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.hs-info-text {
    flex: 1;
}

.hs-info-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hs-info-text a:hover {
    color: var(--hs-primary);
}

/* ===== FEATURES ===== */
.hs-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.hs-feature-tag {
    background: rgba(227, 30, 36, 0.08);
    color: var(--hs-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(227, 30, 36, 0.2);
    transition: all 0.3s ease;
}

.hs-feature-tag:hover {
    background: rgba(227, 30, 36, 0.15);
    transform: translateY(-2px);
}

/* ===== BUTTONS ===== */
.hs-card-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.hs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--hs-btn-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.hs-btn-primary {
    background: var(--hs-primary);
    color: white;
    flex: 1;
}

.hs-btn-primary:hover {
    background: var(--hs-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.35);
}

.hs-btn-secondary {
    background: #2d2d2d;
    color: #ffffff;
    border: none;
}

.hs-btn-secondary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

.hs-btn-secondary svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ===== MODAL ===== */
.hs-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--hs-modal-overlay);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.hs-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hs-modal {
    background: #ffffff;
    border-radius: var(--hs-modal-radius);
    width: 100%;
    max-width: var(--hs-modal-width);
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--hs-primary);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.hs-modal-overlay.active .hs-modal {
    transform: scale(1) translateY(0);
}

.hs-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.hs-modal-close:hover {
    background: var(--hs-primary);
    border-color: var(--hs-primary);
    color: white;
    transform: rotate(90deg);
}

.hs-modal-close svg {
    width: 24px;
    height: 24px;
}

.hs-modal-content {
    overflow-y: auto;
    max-height: 90vh;
}

/* Modal Image */
.hs-modal-image {
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.hs-modal-image img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
}

/* Modal Body */
.hs-modal-body {
    padding: 24px 32px 32px;
}

.hs-modal-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hs-modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 500px) {
    .hs-modal-info-grid {
        grid-template-columns: 1fr;
    }
}

.hs-modal-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.hs-modal-info-item:hover {
    background: #fff;
    border-color: var(--hs-primary);
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.1);
}

.hs-modal-icon {
    width: 42px;
    height: 42px;
    background: rgba(227, 30, 36, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hs-modal-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--hs-primary);
}

.hs-modal-info-content {
    flex: 1;
}

.hs-modal-info-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.hs-modal-info-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.5;
}

.hs-modal-info-value a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.hs-modal-info-value a:hover {
    color: var(--hs-primary);
}

/* Modal Price */
.hs-modal-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--hs-primary), #ff4757);
    color: white;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.3);
}

.hs-modal-price svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    opacity: 0.8;
}

/* Modal Features */
.hs-modal-features {
    margin-bottom: 28px;
}

.hs-modal-features-title {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hs-modal-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hs-modal-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(227, 30, 36, 0.08);
    color: var(--hs-primary);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(227, 30, 36, 0.2);
}

.hs-modal-feature svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Modal Actions */
.hs-modal-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.hs-modal-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.hs-modal-btn-primary {
    background: var(--hs-primary);
    color: white;
    border: none;
}

.hs-modal-btn-primary:hover {
    background: var(--hs-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(227, 30, 36, 0.4);
}

.hs-modal-btn-secondary {
    background: #2d2d2d;
    color: white;
    border: none;
}

.hs-modal-btn-secondary:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
}

.hs-modal-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 500px) {
    .hs-modal-actions {
        flex-direction: column;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hs-card {
    animation: fadeInUp 0.6s ease backwards;
}

.hs-card:nth-child(1) {
    animation-delay: 0.1s;
}

.hs-card:nth-child(2) {
    animation-delay: 0.2s;
}

.hs-card:nth-child(3) {
    animation-delay: 0.3s;
}

.hs-card:nth-child(4) {
    animation-delay: 0.4s;
}

.hs-card:nth-child(5) {
    animation-delay: 0.5s;
}

.hs-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* ===== SCROLLBAR ===== */
.hs-modal-content::-webkit-scrollbar {
    width: 8px;
}

.hs-modal-content::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.hs-modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.hs-modal-content::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}