/**
 * Home Page Specific Styles
 */

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    font-size: 0.95rem;
}

/* ===== COURTS GRID ===== */
.courts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    justify-content: center;
}

.court-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.court-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.court-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.court-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

.court-card:hover .court-image img {
    transform: scale(1.1);
}

.court-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.court-content {
    padding: var(--spacing-md);
}

.court-content h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.court-content p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    min-height: 40px;
}

.court-features {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.court-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    background: var(--light-bg);
    border-radius: var(--radius-full);
}

.court-features i {
    color: var(--primary-color);
}

.court-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.court-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.court-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-md);
    color: var(--white);
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== CONTACT GRID ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.875rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section ul li i {
    color: var(--primary-color);
    width: 22px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    min-width: 300px;
    transform: translateX(400px);
    transition: var(--transition-normal);
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.toast-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: var(--success);
    color: var(--white);
}

.toast-error .toast-icon {
    background: var(--danger);
    color: var(--white);
}

.toast-info .toast-icon {
    background: var(--info);
    color: var(--white);
}

.toast-message {
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */

/* ===== LAPTOP OPTIMIZATION (1024px - 1440px) ===== */
@media (max-width: 1440px) and (min-width: 993px) {
    /* Hero Section - Bigger text, smaller image */
    .hero-content h1 {
        font-size: 2.75rem !important;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 1.1rem !important;
        line-height: 1.6;
    }

    .hero-image {
        max-height: 360px !important;
        height: 360px;
    }

    .hero-image img {
        max-height: 360px !important;
        height: 360px !important;
        object-fit: cover;
        border-radius: 12px;
    }

    /* Features Grid - 3 columns, compact */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Courts Grid - TETAP 3 COLUMNS tapi compact */
    .courts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .court-image {
        height: 160px;
    }

    .court-content {
        padding: 1rem;
    }

    .court-content h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .court-content p {
        font-size: 0.8rem;
        min-height: 30px;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .court-features {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }

    .court-features span {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    .court-footer {
        padding-top: 0.75rem;
    }

    /* Gallery - 3 COLUMNS on laptop */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    /* Contact Section - Compact with minimal spacing */
    .contact-grid {
        gap: 1.5rem;
    }

    .contact-info {
        gap: 1rem !important;  /* Reduce gap between items */
    }

    .contact-item {
        gap: 0.75rem;  /* Reduce gap between icon and text */
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .contact-item h4 {
        font-size: 1.05rem;
        margin-bottom: 0.25rem !important;
    }

    .contact-item p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0 !important;
    }

    .contact-map {
        min-height: 280px;
        max-height: 280px;
    }

    .contact-map iframe {
        height: 280px;
    }

    /* Footer - keep it readable on laptop */
    .footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer-content {
        gap: 2.5rem;
        grid-template-columns: 2fr 1fr 1.5fr;
    }

    .footer-logo {
        font-size: 1.8rem;
    }

    .footer-section h4 {
        font-size: 1.05rem;
        margin-bottom: 0.875rem;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .social-links a {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .courts-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .toast {
        right: 15px;
        left: 15px;
        min-width: auto;
    }
}

/* ===== HERO ACCENT ===== */
.text-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
