/* SGI Discipleship Resources - Public Styles */

/* Resource Grid */
.sgi-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.sgi-resource-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sgi-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sgi-resource-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sgi-resource-content {
    padding: 20px;
}

.sgi-resource-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
}

.sgi-resource-content h3 a {
    color: #2d3748;
    text-decoration: none;
}

.sgi-resource-content h3 a:hover {
    color: #4a5568;
}

.sgi-resource-meta {
    margin-bottom: 12px;
}

.sgi-series {
    display: inline-block;
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.sgi-resource-excerpt {
    color: #718096;
    margin-bottom: 16px;
    line-height: 1.6;
}

.sgi-resource-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}

.sgi-resource-link:hover {
    color: #2c5aa0;
}

/* Access Denied */
.sgi-access-denied {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

.sgi-access-denied-icon {
    margin-bottom: 24px;
}

.sgi-access-denied h2 {
    color: #2d3748;
    margin-bottom: 16px;
}

.sgi-access-denied p {
    color: #718096;
    margin-bottom: 16px;
    line-height: 1.6;
}

.sgi-access-denied-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sgi-access-denied-actions .button {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.button-primary {
    background: #3182ce;
    color: #fff;
}

.button-primary:hover {
    background: #2c5aa0;
}

.button-secondary {
    background: #edf2f7;
    color: #4a5568;
}

.button-secondary:hover {
    background: #e2e8f0;
}

/* User Widget */
.sgi-user-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2d3748;
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    z-index: 1000;
}

/* Responsive */
@media (max-width: 768px) {
    .sgi-resources-grid {
        grid-template-columns: 1fr;
    }

    .sgi-access-denied {
        margin: 20px;
        padding: 24px;
    }

    .sgi-access-denied-actions {
        flex-direction: column;
    }
}
