/**
 * Enhanced Layout for Directory Item Pages
 * Improves the layout and styling of single directory item pages
 */

/* Main content grid layout */
.directory-item-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .directory-item-content-wrapper {
        grid-template-columns: 2fr 1fr;
    }
}

/* Content section enhancements */
.content-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.2s ease;
}

.content-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.8rem;
}

.section-title i {
    margin-right: 0.8rem;
    color: #4a89dc;
}

/* Popular times grid layout */
.popular-times-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.day-column {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.day-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.time-period {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    background-color: #fff;
}

.time-period-name {
    font-weight: 500;
    color: #555;
}

.busyness-level {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
}

.busyness-level.not-busy {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.busyness-level.slightly-busy {
    background-color: #fff8e1;
    color: #f57f17;
}

.busyness-level.busy {
    background-color: #ffebee;
    color: #c62828;
}

.busyness-level.very-busy {
    background-color: #7f0000;
    color: #ffffff;
}

/* Address and hours section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.info-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
    display: flex;
    align-items: center;
}

.info-card-title i {
    margin-right: 0.6rem;
    color: #4a89dc;
}

.info-card-content {
    color: #555;
    line-height: 1.6;
}

/* Sidebar enhancements */
.directory-item-sidebar {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 1.8rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.6rem;
}

/* Rating display */
.rating-display {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-right: 0.8rem;
}

.rating-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-button i {
    margin-right: 0.5rem;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.email {
    background-color: #ea4335;
}

.share-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Hero section enhancement */
.directory-item-hero {
    position: relative;
    padding: 3rem 0;
    background-size: cover;
    background-position: center;
    color: #fff;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .popular-times-container {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
