/* Custom Styles for PhD Scholar Portal */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #4a4a4a;
    --accent-color: #8c2a2a;
    --bg-light: #f5f5f4;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: var(--bg-light);
}

.font-karma {
    font-family: 'Karma', serif;
}

/* Layout Utilities */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

@media (max-width: 576px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Layout Toggle */
.layout-toggle {
    display: flex;
    background: #e5e5e5;
    padding: 4px;
    border-radius: 8px;
}

.layout-toggle button {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--secondary-color);
}

.layout-toggle button.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Header */
.navbar {
    background-color: var(--primary-color) !important;
    border-bottom: 2px solid var(--accent-color);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero-section {
    background: white;
    padding: 80px 0;
    border-bottom: 1px solid #e5e5e0;
}

/* Search Section */
.search-section {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.8) !important;
    padding: 1.5rem 0;
}

#liveSearch {
    border-radius: 12px;
    border: 1px solid #e5e5e0;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

#domainFilter {
    border-radius: 12px;
    border: 1px solid #e5e5e0;
}

/* Smart Cards (Grid Mode) */
.scholar-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e5e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.scholar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.pointer-link:hover {
    color: var(--accent-color) !important;
    text-decoration: underline;
}

.text-accent {
    color: var(--accent-color) !important;
}

.card-img-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f1f5f9;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sloka-text {
    font-family: 'Karma', serif;
    font-size: 1.25rem;
    color: var(--accent-color);
    background: #fffafa;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    margin: 1.25rem 0;
    font-weight: 500;
    line-height: 1.6;
}

.modal-body .sloka-text {
    font-size: 1.5rem !important;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-left: 6px solid var(--accent-color);
}

/* Info Layout (List Mode) */
.info-row {
    background: white;
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    border: 1px solid #e5e5e0;
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
}

.info-row:hover {
    border-color: var(--accent-color);
    box-shadow: var(--card-shadow);
    transform: translateX(4px);
}

.info-content {
    flex-grow: 1;
}

.info-actions {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.transliteration-text {
    font-size: 1.05rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.info-meta span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Multilingual Support */
[lang="hi"], [lang="sa"] {
    font-family: 'Karma', serif;
}

/* Admin Dashboard */
.sidebar {
    min-height: 100vh;
    background-color: var(--primary-color);
}

.sidebar a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.sidebar a:hover, .sidebar a.active {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sloka-text {
        font-size: 1.1rem;
    }
}
