/* Vyanjan (Consonants) Page Styles */
/* EXACT SAME DESIGN AS SWAR SECTION */

/* Breadcrumb - Modern Design */
.breadcrumb-section {
    padding: 24px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-bottom: 2px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-lighter);
    font-weight: bold;
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 700;
}

/* Stats Small */
.stats.small {
    max-width: 700px;
    gap: 32px;
}

.stats.small .stat-item {
    flex: 1;
}
section.vyanjan-letters-section {
    padding: 80px 0;
}
/* Vyanjan Letters Grid (Archive Page) */
.vyanjan-letters-grid {
    display: grid;
	grid-template-columns: repeat(13, 1fr);
	gap: 15px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.vyanjan-letter-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border: 3px solid var(--border-color);
}

.vyanjan-letter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(102, 126, 234, 0.3);
    border-color: var(--primary-color);
}

.vyanjan-letter-hindi {
    font-size: 32px;
    line-height: 1em;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vyanjan-letter-english {
    font-size: 16px;
    color: var(--text-medium);
    font-weight: 700;
    text-transform: uppercase;
}

.vyanjan-letter-count {
    font-size: 14px;
    color: var(--text-lighter);
    margin-top: 4px;
}

/* Vowel Signs Filter (Bharkhadi) */
.vowel-signs-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin: 30px 0;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--border-color);
}

.filter-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vowel-signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 14px;
}

.vowel-sign-btn {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-medium);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}

.vowel-sign-btn:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-colored);
}

.vowel-sign-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-colored);
}

.vowel-sign-btn.all-btn {
    grid-column: span 2;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: transparent;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.vowel-sign-btn.all-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.vowel-sign-btn.all-btn.active {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

.vowel-sign-english {
    display: block;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.85;
}

/* Gender Filter - Enhanced */
.gender-filter {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 30px 0;
}

.gender-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border: 3px solid var(--border-color);
    border-radius: 60px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-medium);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.gender-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gender-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-colored);
}

/* Names Section - Modern Table */
.names-section {
    padding: 80px 0;
}

.names-table-wrapper {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 48px;
    border: 3px solid var(--border-color);
}

.names-table {
    width: 100%;
    border-collapse: collapse;
}

.names-table thead {
    background: var(--gradient-primary);
    color: var(--white);
}

.names-table thead th {
    padding: 20px;
    text-align: left;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.names-table tbody tr {
    border-bottom: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.names-table tbody tr:hover {
    background: linear-gradient(90deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
    transform: scale(1.01);
}

.names-table tbody td {
    padding: 20px;
    vertical-align: middle;
}

.name-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.name-english {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}

.name-hindi {
    font-size: 17px;
    color: var(--text-light);
    font-weight: 600;
}

.meaning-cell {
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 450px;
    font-weight: 500;
}

.gender-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gender-badge.boy {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 2px solid #93c5fd;
}

.gender-badge.girl {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d;
    border: 2px solid #f9a8d4;
}

/* Gender Sections - Enhanced */
.gender-section {
    margin-bottom: 80px;
}

.gender-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 28px;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--border-color);
}

.gender-section-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gender-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gender-icon.boy {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 3px solid #93c5fd;
}

.gender-icon.girl {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border: 3px solid #f9a8d4;
}

.gender-section-header:hover .gender-icon {
    transform: scale(1.1) rotate(5deg);
}

.gender-section-title h2 {
    color: var(--text-dark);
    font-size: 28px;
    margin: 0;
    font-weight: 900;
}

.gender-count {
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 600;
    margin-top: 4px;
}

/* Load More Button - Enhanced */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.load-more-btn {
    padding: 18px 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 60px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-colored);
}

.load-more-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.4);
}

.load-more-btn:disabled {
    background: var(--bg-medium);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-loader {
    display: none;
}

.no-more-names {
    text-align: center;
    padding: 24px;
    font-size: 17px;
    color: var(--accent-green);
    font-weight: 700;
    display: none;
}

/* Info Section - Card Style */
.info-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--border-color);
    margin: 40px 0;
}

.info-section h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 900;
}

.info-section h3 {
    color: var(--text-dark);
    margin: 32px 0 20px;
    font-size: 24px;
    font-weight: 800;
}

.info-section p {
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 16px;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.info-section li {
    padding: 16px 0 16px 36px;
    position: relative;
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 500;
}

.info-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 900;
    font-size: 22px;
}

/* Related Section */
.related-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--border-color);
}

.related-section h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
	grid-template-columns: repeat(10, 1fr);
    gap: 14px;
}

.related-link {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    transition: var(--transition);
    display: block;
}

.related-link:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-colored);
}

/* Modal Styles - Modern Design */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--border-color);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    font-size: 28px;
    cursor: pointer;
    z-index: 1;
    transition: var(--transition);
    font-weight: bold;
    color: var(--text-dark);
}

.modal-close:hover {
    background: var(--gradient-secondary);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 36px;
}

.modal-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Name Details in Modal */
.name-detail-header {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--border-color);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
    border-radius: var(--border-radius);
    padding: 15px;
}

.detail-name {
    font-size: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    font-weight: 900;
}

.detail-name-hindi {
    font-size: 28px;
    color: var(--text-medium);
    margin-bottom: 5px;
    font-weight: 700;
}

.detail-section {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 800;
}

.detail-text {
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 16px;
}

.detail-text-hindi {
    color: var(--text-medium);
    line-height: 1.7;
    font-style: italic;
    font-weight: 500;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
    padding: 15px;
    background: var(--bg-lighter);
    border-radius: var(--border-radius);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.detail-item strong {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 800;
}

.detail-item span {
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 600;
}

.detail-item span.hindi {
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 500;
}

.error-message {
    text-align: center;
    color: #ef4444;
    padding: 48px 24px;
    font-size: 18px;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
	.stats.small {
		max-width: unset;
		gap: 10px;
	}

	.gender-section-title h2 {
		font-size: 22px;
	}
	section.vyanjan-letters-section {
		padding: 40px 0;
	}
	.section-header h2 {
        font-size: 28px;
    }
    .breadcrumb-section {
        padding: 16px 0;
    }
    
    .breadcrumb {
        font-size: 14px;
        gap: 8px;
    }
    
    .vyanjan-letters-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 12px;
    }
    
   .vyanjan-letter-card {
        padding: 10px;
        gap: 0px;
    }
    
    .vyanjan-letter-hindi {
        font-size: 36px;
        line-height: 36px;
    }
	.vyanjan-letter-count {
		line-height: 15px;
	}
    .vowel-signs-section {
        padding: 24px;
    }
    
    .vowel-signs-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }
    
    .vowel-sign-btn {
        padding: 14px 8px;
        font-size: 24px;
    }
    
    .gender-filter {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .gender-btn {
        flex: 1;
        min-width: 130px;
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .gender-section-header {
        padding: 20px;
    }
    
    .gender-section-title {
        gap: 16px;
    }
    
    .gender-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .gender-section-title h2 {
        font-size: 22px;
    }
    
    .names-table-wrapper {
        /* overflow-x: auto; */
        overflow-x: auto;
        background: none;
        border: none;
        box-shadow: none !important;
    }
    
    .names-table {
        font-size: 14px;
        float: left;
        float: left;
        width: 100%;
        min-width: unset !important;
        box-shadow: none !important;
    }
	
    .names-table thead th {
        padding: 14px 12px;
        font-size: 13px;
    }
    .names-table tbody tr {
        border-bottom: 2px solid var(--border-color);
        cursor: pointer;
        transition: var(--transition);
        box-shadow: none !important;
        background: white !important;
        float: left;
    }
    .names-table tbody td {
        padding: 5px 15px 5px 15px;
        vertical-align: middle;
        width: 50%;
        float: left;
        height: 100%;
    }
    
    .name-english {
        font-size: 18px;
    }
    
    .name-hindi {
        font-size: 15px;
    }
    
    .info-section {
        padding: 28px 20px;
    }
    
    .info-section h2 {
        font-size: 26px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .related-link {
        font-size: 24px;
        padding: 14px 10px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .detail-name {
        font-size: 32px;
        line-height: 32px;
        margin: 0px;
    }

	.detail-name-hindi {
        font-size: 20px;
        margin-bottom: 0px;
    }

	.detail-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 5px;
	}

	.modal-body {
		padding: 10px;
	}

	.gender-section-header {
		flex-direction: column;
		gap: 12px;
		text-align: center;
		align-items: center;
		padding: 15px;
	}
	.name-detail-header {
		padding: 10px;
		margin-bottom: 10px;
	}
}

@media (max-width: 480px) {
    .vyanjan-letters-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .vowel-signs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gender-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}



@media (max-width:767px){
	.vyanjan-letters-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
	.vyanjan-letter-hindi {
        font-size: 26px;
        line-height: 26px;
    }
	.vyanjan-letter-card {
        padding: 10px;
        gap: 3px;
        border-radius: 5px;
    }
}
@media (max-width:1024px) and (min-width:768px) {
	.vyanjan-letters-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 10px;
    }
	.vyanjan-letter-hindi {
        font-size: 26px;
        line-height: 26px;
    }
	.vyanjan-letter-card {
        padding: 10px;
        gap: 3px;
        border-radius: 5px;
    }
}
@media (max-width:1280px) and (min-width:1024px) {
	.vyanjan-letters-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 10px;
    }
	.vyanjan-letter-hindi {
        font-size: 26px;
        line-height: 26px;
    }
	.vyanjan-letter-card {
        padding: 10px;
        gap: 3px;
        border-radius: 5px;
    }
}
@media (min-width:1280px) and (max-width:1400px) {
	.vyanjan-letters-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 5px;
    }
	.vyanjan-letter-hindi {
        font-size: 26px;
        line-height: 26px;
    }
	.vyanjan-letter-card {
        padding: 10px;
        gap: 3px;
        border-radius: 5px;
    }
}