/**
 * Golf Countries Courses Widget Styles
 * Always 3-column grid layout for golf courses
 */

/* Grid Layout - Always 3 columns on desktop */
.golf-countries-courses-simple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Course Card Styles */
.golf-course-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* aspect-ratio: 4/3; */
}

.golf-course-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.golf-course-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    color: white;
}

.golf-course-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.1;
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); */
    align-self: flex-start;
    /* margin-top: auto; */
    margin-bottom: 8px;
}

.golf-course-location {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.golf-course-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #415464 !important;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.golf-course-button:hover {
    background: #415464 !important;
    color: #fff !important;
    transform: translateX(5px);
    text-decoration: none;
    color: #e18633;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.golf-course-button::after {
    /* content: '→'; */
    font-size: 16px;
    transition: transform 0.3s ease;
}

.golf-course-button:hover::after {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .golf-countries-courses-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .golf-countries-courses-simple {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .golf-course-card {
        /* aspect-ratio: 16/10; */
    }
    
    .golf-course-title {
        font-size: 20px;
    }
    
    .golf-course-content {
        padding: 30px 20px 20px;
    }
}

@media (max-width: 480px) {
    .golf-course-title {
        font-size: 18px;
    }
    
    .golf-course-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Animation for loading */
.golf-course-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.golf-course-card:nth-child(1) { animation-delay: 0.1s; }
.golf-course-card:nth-child(2) { animation-delay: 0.2s; }
.golf-course-card:nth-child(3) { animation-delay: 0.3s; }
.golf-course-card:nth-child(4) { animation-delay: 0.4s; }
.golf-course-card:nth-child(5) { animation-delay: 0.5s; }
.golf-course-card:nth-child(6) { animation-delay: 0.6s; }
.golf-course-card:nth-child(7) { animation-delay: 0.7s; }
.golf-course-card:nth-child(8) { animation-delay: 0.8s; }
.golf-course-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}