/* =======================================================
   RIGVED GLOBAL STYLE
   Used for ALL templates - Archive, Single, Search
   Author: Vipin Yadav
======================================================= */

/* -----------------------------------------
   GLOBAL CONTAINER
------------------------------------------ */
.rigved-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* -----------------------------------------
   HERO SECTION
------------------------------------------ */
.rigved-hero {
    background: #ff4d00;
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 25px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

.rigved-hero h1 {
    font-size: 42px;
    margin: 0;
}

.rigved-hero h2 {
    font-size: 24px;
    margin-top: 8px;
}

/* -----------------------------------------
   SEARCH BOX (SHARED)
------------------------------------------ */
.rigved-search {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.rigved-search input[type="text"] {
    padding: 12px;
    width: 70%;
    max-width: 600px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.rigved-search button {
    padding: 12px 18px;
    background: #ff4d00;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-left: 8px;
    transition: 0.3s ease;
}

.rigved-search button:hover {
    background: #e64500;
}

/* -----------------------------------------
   BREADCRUMB NAVIGATION
------------------------------------------ */
.rigved-breadcrumb {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    border-left: 4px solid #ff4d00;
    line-height: 1.5;
}

.rigved-breadcrumb a {
    color: #ff4d00;
    text-decoration: none;
    font-weight: 500;
}

.rigved-breadcrumb a:hover {
    text-decoration: underline;
}

.rigved-breadcrumb span {
    color: #666;
    font-weight: 600;
}

/* -----------------------------------------
   PAGE TITLES (ALL PAGES)
------------------------------------------ */
.rigved-title {
    margin: 25px 0;
    text-align: center;
}

.rigved-title h1 {
    font-size: 32px;
    color: #b33;
    margin-bottom: 10px;
    line-height: 1.3;
}

.rigved-title p {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* -----------------------------------------
   SHLOK CARD (USED IN ALL PAGES)
------------------------------------------ */
.rigved-item-card {
    background: #fff5ef;
    border: 1px solid #f1c7b3;
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: relative;
}

.rigved-item-card h2,
.rigved-item-card h3 {
    color: #b33;
    font-size: 24px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #e8b7a1;
    padding-bottom: 8px;
}

/* META LINKS */
.rigved-item-card .meta {
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
}

.rigved-item-card .meta a {
    color: #ff4d00;
    text-decoration: none;
}

.rigved-item-card .meta a:hover {
    text-decoration: underline;
}

/* SHLOK TEXTS */
.sanskrit {
    color: #4b0082;
    font-size: 22px;
    margin: 18px 0;
    text-align: center;
    line-height: 1.6;
}

.hindi {
    color: #5c24a4;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.eng {
    color: #a63c2a;
    font-size: 17px;
    font-style: italic;
    line-height: 1.5;
}

/* -----------------------------------------
   SHARE ICONS (WHATSAPP | TWITTER | FB)
------------------------------------------ */
.rigved-share {
    text-align: right;
    margin-bottom: 10px;
}

.rigved-share i {
    font-size: 20px;
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.9;
    transition: 0.2s;
}

.rigved-share i:hover {
    opacity: 0.7;
}

.rigved-share .fa-whatsapp { color: #25D366; }
.rigved-share .fa-x-twitter { color: #000; }
.rigved-share .fa-facebook { color: #1877F2; }
.rigved-share .fa-share-alt { color: #666; }

/* =======================================================
   PAGINATION (ARCHIVE & SEARCH PAGES)
======================================================= */
.rigved-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 35px 0;
}

.rigved-pagination a {
    padding: 10px 16px;
    border: 1px solid #ff4d00;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    background: #fff;
    color: #ff4d00;
    transition: 0.25s;
}

.rigved-pagination a:hover {
    background: #ff4d00;
    color: white;
}

.rigved-pagination span {
    padding: 10px 0;
    font-weight: 600;
}

/* =======================================================
   SINGLE PAGE NAVIGATION (PREV | BACK | NEXT)
======================================================= */
.rigved-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.rigved-navigation a {
    padding: 12px 18px;
    border-radius: 6px;
    border: 1px solid #ff4d00;
    text-decoration: none;
    font-weight: 600;
    background: #fff;
    color: #ff4d00;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.25s ease;
}

.rigved-navigation a:hover {
    background: #ff4d00;
    color: #fff;
}

/* Disabled state */
.rigved-navigation .disabled {
    padding: 12px 18px;
    border-radius: 6px;
    border: 1px solid #ccc;
    text-decoration: none;
    font-weight: 600;
    background: #f2f2f2;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Back link */
.rigved-back-link {
    text-align: center;
    margin: 30px 0;
}

.rigved-back-link a {
    padding: 10px 20px;
    border: 1px solid #ff4d00;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    background: #fff;
    color: #ff4d00;
    transition: 0.25s;
}

.rigved-back-link a:hover {
    background: #ff4d00;
    color: white;
}

/* =======================================================
   SEARCH PAGE SPECIFIC STYLES
======================================================= */

/* Search results stats */
.search-stats {
    background: #e8f4ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    margin: 20px 0;
    text-align: center;
}

.search-stats strong {
    color: #b33;
    font-weight: 700;
}

/* No results styling */
.no-results {
    background: #fff3f3;
    padding: 40px 20px;
    border-radius: 10px;
    border: 1px solid #ffcdd2;
    margin: 30px 0;
    text-align: center;
}

.no-results p {
    margin-bottom: 15px;
}

/* Search instructions */
.search-instructions {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 12px;
    margin: 25px 0;
}

.search-instructions h3 {
    color: #b33;
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.search-instructions h4 {
    color: #ff4d00;
    margin-bottom: 10px;
    font-size: 16px;
}

.search-instructions p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Search results section */
.rigved-search-results {
    display: block;
}

/* Search result highlighting */
.rigved-search-results .rigved-item-card {
    position: relative;
}

.rigved-search-results .rigved-item-card::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ff4d00;
    border-radius: 2px;
}

/* =======================================================
   AJAX SEARCH RESULTS STYLES
======================================================= */
#rigved-search-results {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 600px;
    background: white;
    border: 2px solid #ff4d00;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(255, 77, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
}

.rigved-search-item {
    padding: 15px 20px;
    border-bottom: 1px solid #ffe0d0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.rigved-search-item:hover {
    background: linear-gradient(135deg, #fff8f5, #ffefe8);
    transform: translateX(5px);
}

.rigved-search-item:last-child {
    border-bottom: none;
}

.rigved-search-item .search-title {
    font-size: 16px;
    color: #b33;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.rigved-search-item .search-preview {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.rigved-search-item .search-meta {
    font-size: 12px;
    color: #ff4d00;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Highlight matching text */
.highlight {
    background: linear-gradient(120deg, #fff3cd, #ffeb3b);
    color: #b33;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

/* Loading animation */
.rigved-search-loading {
    text-align: center;
    padding: 30px;
    color: #ff4d00;
    font-size: 16px;
    font-weight: 600;
}

.rigved-search-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: #ff4d00; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 #ff4d00, .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 #ff4d00, .5em 0 0 #ff4d00; }
}

/* =======================================================
   RESPONSIVE DESIGN
======================================================= */
@media (max-width: 768px) {
    .rigved-hero h1 { font-size: 32px; }
    .rigved-hero h2 { font-size: 20px; }

    .sanskrit, .hindi, .eng {
        font-size: 18px;
    }

    .rigved-navigation {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .rigved-search input,
    .rigved-search button {
        width: 100%;
        margin: 6px 0;
    }

    /* Responsive breadcrumb */
    .rigved-breadcrumb {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .rigved-title h1 {
        font-size: 26px;
    }
    
    .rigved-title p {
        font-size: 14px;
    }

    /* Responsive search instructions */
    .search-instructions {
        padding: 20px 15px;
    }
    
    .search-instructions > div {
        flex-direction: column;
        gap: 20px;
    }
    
    .no-results {
        padding: 30px 15px;
    }
    
    .search-stats {
        padding: 12px;
        font-size: 14px;
    }

    /* Responsive AJAX results */
    #rigved-search-results {
        width: 90%;
        left: 5%;
        transform: none;
    }
    
    .rigved-search-item {
        padding: 12px 15px;
    }
    
    .rigved-search-item .search-title {
        font-size: 14px;
    }
    
    .rigved-search-item .search-preview {
        font-size: 13px;
    }
}

/* =======================================================
   PRINT STYLES
======================================================= */
@media print {
    .rigved-hero,
    .rigved-search,
    .rigved-share,
    .rigved-navigation,
    .search-instructions {
        display: none;
    }
    
    .rigved-item-card {
        border: none;
        box-shadow: none;
        background: none;
        page-break-inside: avoid;
    }
    
    .rigved-search-results .rigved-item-card::before {
        display: none;
    }
    
    .search-stats {
        background: none;
        border: 1px solid #ccc;
    }
    
    .rigved-breadcrumb {
        background: none;
        border: 1px solid #ddd;
    }
}

/* =======================================================
   ACCESSIBILITY IMPROVEMENTS
======================================================= */
@media (prefers-reduced-motion: reduce) {
    .rigved-search-item,
    .rigved-pagination a,
    .rigved-navigation a {
        transition: none;
    }
    
    .rigved-search-loading::after {
        animation: none;
    }
}

/* Focus styles for better accessibility */
.rigved-search input:focus,
.rigved-search button:focus,
.rigved-pagination a:focus,
.rigved-navigation a:focus {
    outline: 2px solid #ff4d00;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .rigved-item-card {
        border: 2px solid #000;
    }
    
    .rigved-hero {
        background: #000;
        color: #fff;
    }
    
    .sanskrit {
        color: #000;
        font-weight: bold;
    }
}
/* VEDAS SCROLL NAVIGATION STYLES */
.vedas-scroll-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 30px 0;
    padding: 0 10px;
}

.vedas-nav-container {
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    position: relative;
}

.vedas-nav {
    display: flex;
    gap: 15px;
    padding: 10px 5px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vedas-nav::-webkit-scrollbar {
    display: none;
}

.veda-nav-item {
    flex: 0 0 auto;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.veda-nav-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.veda-nav-item.active {
    background: #ff4d00;
    border-color: #ff4d00;
    color: white;
    box-shadow: 0 4px 12px rgba(44, 94, 46, 0.3);
}

.scroll-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: #f8f9fa;
    border-color: #2c5e2e;
    color: #2c5e2e;
    transform: scale(1.1);
}

.scroll-btn:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vedas-scroll-nav {
        gap: 5px;
        margin: 15px 0 25px 0;
    }
    
    .veda-nav-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .vedas-nav {
        gap: 10px;
        padding: 8px 3px;
    }
    
    .veda-nav-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .scroll-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}