/**
 * Sermon List Styles
 *
 * Styles for sermon index and list interactions
 *
 * @version 1.0.0
 */

/* Sermon Card */
.sermon-card {
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid #dee2e6;
}

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

.sermon-title a {
    color: #212529;
    transition: color 0.3s;
}

.sermon-title a:hover {
    color: #28a745;
}

.sermon-subtitle {
    font-size: 1.1rem;
}

.sermon-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sermon Actions */
.sermon-actions {
    width: 100%;
}

.sermon-actions .btn {
    transition: all 0.3s;
}

.sermon-actions .btn:hover {
    transform: translateY(-1px);
}

/* Action Menu Dropdown */
.sermon-action-menu {
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 0;
}

.sermon-action-menu .dropdown-header {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 8px 16px;
}

.sermon-action-menu .dropdown-item {
    padding: 8px 16px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.sermon-action-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #28a745;
}

.sermon-action-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

.sermon-action-menu .dropdown-divider {
    margin: 8px 0;
}

/* Toast Notifications */
.sermon-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
    max-width: 350px;
}

.sermon-toast {
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.sermon-toast i {
    font-size: 1.2rem;
}

/* Bookmark Button States */
.sermon-bookmark-btn.btn-warning {
    color: #fff;
    background-color: #ffc107;
    border-color: #ffc107;
}

.sermon-bookmark-btn.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* Bookmark Count Badge */
#bookmark-count-badge {
    font-size: 0.75rem;
    vertical-align: top;
    margin-left: 4px;
}

/* Bookmark Item */
.bookmark-item {
    transition: transform 0.3s, box-shadow 0.3s;
}

.bookmark-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sermon-card .row {
        flex-direction: column;
    }

    .sermon-card .col-md-9,
    .sermon-card .col-md-3 {
        width: 100%;
        max-width: 100%;
    }

    .sermon-actions {
        margin-top: 1rem;
    }

    .sermon-action-menu {
        left: 50% !important;
        transform: translateX(-50%);
        max-width: 90vw;
    }

    .sermon-toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* Dark Theme Support */
body.dark-theme .sermon-card {
    background: #2d2d2d;
    border-color: #4a5568;
}

body.dark-theme .sermon-title a {
    color: #e0e0e0;
}

body.dark-theme .sermon-title a:hover {
    color: #4ade80;
}

body.dark-theme .sermon-action-menu {
    background: #2d2d2d;
    border-color: #4a5568;
}

body.dark-theme .sermon-action-menu .dropdown-item {
    color: #e0e0e0;
}

body.dark-theme .sermon-action-menu .dropdown-item:hover {
    background-color: #1a1a1a;
    color: #4ade80;
}

/* Print Styles */
@media print {
    .sermon-actions,
    .sermon-toast-container {
        display: none !important;
    }
}
