/* Ramadan Color - Frontend Styles */

.rc-seo-h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin: 20px 0;
    color: #333;
    line-height: 1.4;
}

/* Gallery Styles */
.rc-gallery-wrap {
    margin: 40px 0;
}

/* Search and Filter Bar */
.rc-search-filter-bar {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.2);
    margin-bottom: 30px;
    border: 2px solid #90caf9;
}

.rc-search-filter-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.rc-search-wrapper {
    flex: 1;
    display: flex;
    gap: 10px;
}

.rc-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #90caf9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.rc-search-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

.rc-search-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.rc-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    background: linear-gradient(135deg, #1976d2, #1565c0);
}

.rc-search-button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.rc-filter-wrapper {
    flex: 0 0 auto;
    min-width: 220px;
}

.rc-category-select {
    width: 100%;
    height: 100%;
    padding: 12px 16px;
    border: 2px solid #90caf9;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rc-category-select:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

@media (max-width: 768px) {
    .rc-search-filter-form {
        flex-direction: column;
    }

    .rc-filter-wrapper {
        width: 100%;
    }
}

.rc-filter-reset {
    display: flex;
    align-items: center;
}

.rc-reset-button {
    padding: 12px 20px;
    background: #fff;
    color: #666;
    border: 2px solid #e1e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rc-reset-button:hover {
    background: #f8f9fa;
    border-color: #666;
    color: #333;
}

@media (max-width: 768px) {
    .rc-search-wrapper {
        width: 100%;
        min-width: 100%;
    }

    .rc-filter-wrapper {
        width: 100%;
        min-width: 100%;
    }

    .rc-filter-reset {
        width: 100%;
    }

    .rc-reset-button {
        width: 100%;
        text-align: center;
    }
}

/* Active Filters / Results Info */
.rc-active-filters {
    background: #f8f9fa;
    border-left: 4px solid #4a90e2;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.rc-results-info {
    margin: 0;
    font-size: 15px;
    color: #555;
}

.rc-results-info strong {
    color: #2c3e50;
    font-weight: 600;
}

/* No Results */
.rc-no-results {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 30px 0;
}

.rc-no-results-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.rc-no-results-icon .dashicons {
    width: 64px;
    height: 64px;
    font-size: 64px;
}

.rc-no-results h3 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.rc-no-results p {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
}

.rc-gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.rc-gallery-title {
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.rc-image-count {
    color: #7f8c8d;
    font-size: 24px;
    font-weight: 400;
}

.rc-category-description {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.rc-gallery-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.rc-columns-1 { grid-template-columns: repeat(1, 1fr); }
.rc-columns-2 { grid-template-columns: repeat(2, 1fr); }
.rc-columns-3 { grid-template-columns: repeat(3, 1fr); }
.rc-columns-4 { grid-template-columns: repeat(4, 1fr); }
.rc-columns-5 { grid-template-columns: repeat(5, 1fr); }
.rc-columns-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .rc-columns-4, .rc-columns-5, .rc-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rc-columns-3, .rc-columns-4, .rc-columns-5, .rc-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    .rc-gallery-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .rc-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.rc-gallery-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rc-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.rc-gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 210/297;
}

.rc-gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rc-gallery-link:hover .rc-gallery-thumb {
    transform: scale(1.05);
}

.rc-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rc-gallery-link:hover .rc-gallery-overlay {
    opacity: 1;
}

.rc-view-button {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 24px;
    background: #4a90e2;
    border-radius: 8px;
}

.rc-gallery-info {
    padding: 20px;
}

.rc-gallery-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.rc-gallery-item-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rc-gallery-item-title a:hover {
    color: #4a90e2;
}

.rc-gallery-actions {
    display: block;
    margin-bottom: 12px;
}

.rc-view-button-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    border: none;
}

.rc-view-button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: #fff;
}

.rc-gallery-stats {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e3f2fd;
}

.rc-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #1565c0;
    font-weight: 500;
}

.rc-stat .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: #2196f3;
}

.rc-no-images {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    color: #666;
    font-size: 16px;
}

/* Pagination */
.rc-gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.rc-page-button {
    padding: 12px 24px;
    border-radius: 8px;
    background: #4a90e2;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rc-page-button:hover {
    background: #2c6cb0;
    transform: translateY(-2px);
    color: #fff;
}

.rc-page-button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.rc-page-numbers {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Categories Grid */
.rc-categories-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.rc-cols-1 { grid-template-columns: repeat(1, 1fr); }
.rc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rc-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .rc-cols-3, .rc-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .rc-categories-grid {
        grid-template-columns: 1fr;
    }
}

.rc-category-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rc-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.rc-category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rc-category-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rc-category-card:hover .rc-category-image img {
    transform: scale(1.05);
}

.rc-category-placeholder {
    font-size: 48px;
    color: #ddd;
}

.rc-category-content {
    padding: 20px;
}

.rc-category-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.rc-category-count {
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 400;
}

.rc-category-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Post Categories Section */
.rc-post-categories {
    margin: 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    border: 2px solid #90caf9;
}

.rc-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1565c0;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #90caf9;
}

.rc-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rc-category-tag {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: #1565c0;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid #2196f3;
    transition: all 0.3s ease;
}

.rc-category-tag:hover {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Related Posts Section */
.rc-related-posts {
    margin: 40px 0;
}

.rc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

@media (max-width: 1024px) {
    .rc-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .rc-related-grid {
        grid-template-columns: 1fr;
    }
}

.rc-related-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e3f2fd;
}

.rc-related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.25);
    border-color: #90caf9;
}

.rc-related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rc-related-image {
    aspect-ratio: 210/297;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.rc-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rc-related-item:hover .rc-related-image img {
    transform: scale(1.05);
}

.rc-related-info {
    padding: 15px;
}

.rc-related-title {
    font-size: 16px;
    font-weight: 600;
    color: #1565c0;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rc-related-stats {
    display: flex;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #e3f2fd;
}

.rc-related-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #1565c0;
    font-weight: 500;
}

.rc-related-stat .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: #2196f3;
}

/* Social Share Section */
.rc-social-share {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    border-radius: 16px;
    border: 2px solid #90caf9;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.1);
}

.rc-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.rc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rc-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.rc-share-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.rc-share-facebook {
    background: linear-gradient(135deg, #1877f2, #0c63d4);
    color: #fff;
}

.rc-share-facebook:hover {
    background: linear-gradient(135deg, #0c63d4, #0a58ca);
    color: #fff;
}

.rc-share-pinterest {
    background: linear-gradient(135deg, #e60023, #bd001b);
    color: #fff;
}

.rc-share-pinterest:hover {
    background: linear-gradient(135deg, #bd001b, #a50019);
    color: #fff;
}

.rc-share-twitter {
    background: linear-gradient(135deg, #000, #333);
    color: #fff;
}

.rc-share-twitter:hover {
    background: linear-gradient(135deg, #333, #555);
    color: #fff;
}

.rc-share-whatsapp {
    background: linear-gradient(135deg, #25d366, #1da851);
    color: #fff;
}

.rc-share-whatsapp:hover {
    background: linear-gradient(135deg, #1da851, #128c42);
    color: #fff;
}

.rc-share-copy {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: #fff;
}

.rc-share-copy:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    color: #fff;
}

@media (max-width: 640px) {
    .rc-share-buttons {
        flex-direction: column;
    }

    .rc-share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media print {
    .rc-btn, .rc-actions, .rc-related-posts,
    .rc-post-categories, .rc-social-share,
    .rc-search-filter-bar, .rc-gallery-pagination {
        display: none !important;
    }

    .rc-image {
        max-width: 100%;
        page-break-inside: avoid;
    }
}
