/* Global Styles */
:root {
    --primary-color: #5c6bc0;
    --hover-color: #3f51b5;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Poppins', 'Noto Sans Kannada', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
#header {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

#header .navbar {
    padding: 0.5rem 1rem;
}

/* Main Content Area */
.container {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Typography */
.display-4 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.lead {
    color: var(--text-color);
}

/* Search Bar - Common styles for all search inputs */
.input-group {
    box-shadow: var(--card-shadow);
    border-radius: 50px;
    overflow: hidden;
    background-color: white;
    margin-bottom: 0.5rem;
}

.input-group-text {
    border: none;
    padding-left: 1.5rem;
    background-color: white;
    color: var(--primary-color);
}

#author-search, #tripadi-search, #gadegalu-search {
    border: none;
    padding: 1rem;
    background-color: white;
    color: var(--text-color);
    font-family: 'Noto Sans Kannada', sans-serif;
    font-size: 1.1rem;
    height: auto;
}

#author-search::placeholder, #tripadi-search::placeholder, #gadegalu-search::placeholder {
    color: #6c757d;
    opacity: 0.8;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

#author-search:focus, #tripadi-search:focus, #gadegalu-search:focus {
    box-shadow: none;
    outline: none;
}

#transliteration-preview {
    min-height: 24px;
    color: var(--primary-color);
    font-family: 'Noto Sans Kannada', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.kannada-text {
    font-family: 'Noto Sans Kannada', sans-serif !important;
}

#transliteration-status {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

/* Google Transliteration overrides */
.goog-te-banner-frame {
    display: none !important;
}

.goog-tooltip {
    display: none !important;
}

.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Grid Containers */
#author-grid, #tripadi-grid, #gadegalu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    min-height: 200px;
}

/* Author Card Wrapper */
.author-card-wrapper {
    width: 100%;
    display: block;
    margin-bottom: 2rem;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Author Card */
.author-card {
    background-color: #ffffff;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
}

.author-card .card-body {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background-color: #ffffff;
    min-height: 250px;
    visibility: visible !important;
}

.author-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a237e !important;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.5px;
    visibility: visible !important;
}

.author-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #3949ab);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    visibility: visible !important;
}

.first-char {
    font-size: 2rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    visibility: visible !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #3949ab);
    color: white !important;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
}

.author-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

.author-card:hover .card-title {
    transform: scale(1.05);
    color: var(--primary-color);
}

.author-card:hover .author-icon {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Button Styles */
.author-card .btn-primary:hover {
    background: linear-gradient(135deg, #3949ab, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card Animation */
@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.author-card-wrapper {
    animation: cardAppear 0.6s ease-out forwards;
}

/* Hover Effects */
.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.1), rgba(63, 81, 181, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.author-card:hover::before {
    opacity: 1;
}

/* Remove lazy load opacity to ensure cards are visible */
.lazy-load {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.lazy-load.loaded {
    opacity: 1 !important;
    transform: none !important;
}

/* Button Styles */
.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-2px);
    color: white;
}

/* Footer Styles */
#footer {
    background-color: white;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .author-card .card-title {
        font-size: 1.3rem;
    }
    
    .first-char {
        font-size: 1.8rem;
    }

    .author-icon {
        width: 70px;
        height: 70px;
    }

    .author-card .btn-primary {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .container {
        padding-top: 1rem;
    }

    #author-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .author-card .card-body {
        min-height: 200px;
        padding: 1.5rem 1rem;
    }
}

/* Alert Styles */
.alert {
    border-radius: 15px;
    padding: 1rem 1.5rem;
}

.alert-danger {
    background-color: #fff2f2;
    border-color: #ffcdd2;
    color: #d32f2f;
}

/* Custom Styles for Vachanax Website */

h1 {
    color: #343a40;
    margin-bottom: 20px;
}

.card {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
    color: #495057;
}

#load-more {
    min-width: 200px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

#load-more:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

#load-more .spinner-border {
    margin-right: 0.5rem;
}

/* Additional Card Styles */
.author-card-wrapper {
    width: 100%;
    margin-bottom: 2rem;
}

/* Card Content Styles */
.author-card .card-body {
    background-color: #ffffff;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 250px;
}

/* Ensure text visibility */
.card-title, .btn-primary {
    color: var(--text-color) !important;
}

.btn-primary {
    color: white !important;
}

/* Container spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
} 