/**
 * Community Stories Styles
 * 
 * This file contains styles specific to the Community Stories feature
 * including the grid layout and card styling.
 * 
 * NOTE: Most layout/card rules are commented out to let the theme's
 * Projects styles take over. Only keeping non-conflicting styles.
 */

/* Community Stories Grid Container - COMMENTED OUT to use Projects auto-grid */
/*
.community-stories-grid {
    margin: 2rem 0;
}
*/

/* Community Story Card Styling - COMMENTED OUT to use Projects card classes */
/*
.community-story-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.community-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
*/

/* Card Image Styling - COMMENTED OUT to use Projects image styles */
/*
.community-story-card .card-img-top {
    height: 200px;
    overflow: hidden;
    background: var(--light, #f8f9fa);
}

.community-story-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.community-story-card:hover .card-img-top img {
    transform: scale(1.05);
}
*/

/* Card Body Styling - COMMENTED OUT to use Projects card-body styles */
/*
.community-story-card .card-body {
    padding: 1.5rem;
}

.community-story-card .card-title {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.community-story-card .card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.community-story-card .text-muted {
    font-size: 0.85rem;
    font-style: italic;
}
*/

/* Card Footer Styling - COMMENTED OUT to use Projects card-footer styles */
/*
.community-story-card .card-footer {
    background: transparent;
    border-top: none;
    padding: 1rem 1.5rem;
}
*/

/* Button Arrow Styling - COMMENTED OUT to use Projects btn-link styles */
/*
.community-story-card .btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color, #007bff);
    font-weight: 500;
    transition: color 0.3s ease;
}

.community-story-card .btn-arrow:hover {
    color: var(--primary-dark, #0056b3);
    text-decoration: none;
}

.community-story-card .btn-arrow .fa-solid {
    transition: transform 0.3s ease;
}

.community-story-card .btn-arrow:hover .fa-solid {
    transform: translateX(3px);
}
*/

/* Responsive Grid Adjustments - COMMENTED OUT to use Projects auto-grid */
/*
@media (max-width: 575.98px) {
    .community-stories-grid .row {
        margin: 0 -0.5rem;
    }
    
    .community-stories-grid .col {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .community-stories-grid .row-cols-md-2 > * {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .community-stories-grid .row-cols-lg-3 > * {
        flex: 0 0 auto;
        width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .community-stories-grid .row-cols-xl-4 > * {
        flex: 0 0 auto;
        width: 25%;
    }
}
*/

/* Empty State Styling - COMMENTED OUT to use Projects styles */
/*
.community-stories-grid p {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin: 2rem 0;
}
*/

/* Loading State (if needed) */
.community-stories-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.community-stories-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
