/*
 * Frontend Stylesheet for Alabama SEO Directory Plugin
 */

/* Main container for all listings */
.asd-listings-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

/* Base styles for a single agency card */
.asd-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.asd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Specific styles for featured cards */
.asd-card-featured {
    border: 2px solid #4f46e5; /* Indigo border */
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2), 0 4px 6px -2px rgba(79, 70, 229, 0.1);
}

/* The "Featured" badge on featured cards */
.asd-featured-badge {
    position: absolute;
    top: 15px;
    right: -1px;
    background-color: #4f46e5;
    color: #ffffff;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.1);
}

/* Flex container for the card's content */
.asd-card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .asd-card-content {
        flex-direction: row;
        align-items: center;
    }
}

/* Agency logo container */
.asd-card-logo {
    flex-shrink: 0;
    text-align: center;
}

.asd-card-logo img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

/* Main details section (name, rating, description) */
.asd-card-details {
    flex-grow: 1;
}

.asd-card-details h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.asd-card-details p {
    margin: 0.5rem 0 0 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.asd-rating {
    font-weight: 600;
    color: #6b7280;
}

/* Actions section (button) */
.asd-card-actions {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .asd-card-actions {
        width: auto;
        min-width: 150px;
    }
}

/* Base button styles */
.asd-button {
    display: inline-block;
    background-color: #4b5563;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.asd-button:hover {
    background-color: #1f2937;
}

/* Featured button styles */
.asd-button-featured {
    background-color: #4f46e5;
}

.asd-button-featured:hover {
    background-color: #4338ca;
}
