/**
 * Tamilcube Horoscope Plugin Styles
 */

/* Container */
.tch-horoscope-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Form Styles */
.tch-form {
    background: #f7f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.tch-form-title {
    font-size: 24px;
    color: #24292e;
    margin-bottom: 25px;
    text-align: center;
}

.tch-form-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e1e4e8;
}

.tch-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tch-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #586069;
    margin-bottom: 15px;
}

.tch-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.tch-form-group {
    display: flex;
    flex-direction: column;
}

.tch-form-label {
    font-size: 14px;
    color: #24292e;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Input Styles */
.tch-input,
.tch-select {
    padding: 8px 12px;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

.tch-input:focus,
.tch-select:focus {
    outline: none;
    border-color: #0366d6;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

.tch-input-small {
    width: 60px;
}

.tch-input-medium {
    width: 100px;
}

/* Coordinate Input */
.tch-coordinate-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tch-coordinate-input {
    padding: 8px 12px;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    font-size: 14px;
    background: #f6f8fa;
    color: #586069;
    transition: all 0.2s;
}

.tch-coordinate-input.manual-mode {
    background: white;
    color: #24292e;
    border-color: #0366d6;
}

.tch-coordinate-input:read-only {
    cursor: not-allowed;
}

.tch-coordinate-input.manual-mode:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

.tch-direction-select {
    width: 60px;
}

/* Manual Mode Toggle */
.tch-manual-toggle {
    padding: 6px 12px;
    background: white;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    font-size: 13px;
    color: #586069;
    cursor: pointer;
    transition: all 0.2s;
}

.tch-manual-toggle:hover {
    background: #f6f8fa;
}

.tch-manual-toggle.active {
    background: #0366d6;
    color: white;
    border-color: #0366d6;
}

.tch-manual-help {
    display: none;
    font-size: 12px;
    color: #0366d6;
    margin-top: 5px;
}

/* Date Time Input */
.tch-datetime-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.tch-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tch-btn-primary {
    background: #28a745;
    color: white;
}

.tch-btn-primary:hover {
    background: #218838;
}

.tch-btn-secondary {
    background: #6c757d;
    color: white;
}

.tch-btn-secondary:hover {
    background: #5a6268;
}

.tch-btn-outline {
    background: white;
    color: #0366d6;
    border: 1px solid #d1d5da;
}

.tch-btn-outline:hover {
    background: #f6f8fa;
}

.tch-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Results Container */
.tch-results {
    display: none;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
}

/* Basic Info */
.tch-basic-info {
    background: #f6f8fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.tch-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tch-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tch-info-label {
    font-weight: 600;
    color: #586069;
    min-width: 120px;
}

.tch-info-value {
    color: #24292e;
    font-size: 16px;
}

/* Planetary Positions */
.tch-planets-section {
    margin-bottom: 30px;
}

.tch-planets-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.tch-planet-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f6f8fa;
    border-radius: 4px;
    border: 1px solid #e1e4e8;
}

.tch-planet-name {
    font-weight: 600;
    color: #0366d6;
}

.tch-planet-position {
    color: #586069;
}

/* Charts */
.tch-charts-container {
    margin-top: 30px;
}

.tch-chart-wrapper {
    margin-bottom: 30px;
}

.tch-chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #24292e;
    margin-bottom: 15px;
    text-align: center;
}

/* South Indian Chart */
.tch-chart-south {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.tch-chart-south table {
    width: 100%;
    border-collapse: collapse;
    aspect-ratio: 1;
}

.tch-chart-south td {
    border: 1px solid #333;
    text-align: center;
    vertical-align: middle;
    position: relative;
    padding: 10px;
    height: 100px;
    background: white;
}

.tch-chart-south .tch-house-number {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

.tch-chart-south .tch-house-sign {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.tch-chart-south .tch-house-planets {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.tch-chart-south .center-cell {
    background: #f6f8fa;
}

/* North Indian Chart */
.tch-chart-north {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.tch-chart-north-diamond {
    width: 100%;
    transform: rotate(45deg);
    aspect-ratio: 1;
}

.tch-chart-north-house {
    position: absolute;
    width: 25%;
    height: 25%;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.tch-chart-north-content {
    transform: rotate(-45deg);
    text-align: center;
}

/* Divisional Charts */
.tch-divisional-section {
    margin-top: 30px;
}

.tch-divisional-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e1e4e8;
}

.tch-divisional-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #586069;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: all 0.2s;
}

.tch-divisional-tab:hover {
    color: #24292e;
}

.tch-divisional-tab.active {
    color: #0366d6;
}

.tch-divisional-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0366d6;
}

.tch-divisional-chart {
    min-height: 400px;
}

/* Loading Overlay */
.tch-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    display: none; /* Keep this as the ONLY display property */
}

.tch-loading.active {
    display: flex; /* Only show when active class is added */
}

.tch-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0366d6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tch-loading p {
    color: white;
    margin-top: 20px;
    font-size: 16px;
}

/* Alert Messages */
.tch-alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.tch-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tch-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Print Styles */
@media print {
    .tch-form,
    .tch-form-actions,
    .tch-divisional-tabs,
    #tch-manual-toggle {
        display: none !important;
    }
    
    .tch-chart-wrapper {
        page-break-inside: avoid;
    }
    
    .tch-horoscope-wrapper {
        max-width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tch-form-row {
        grid-template-columns: 1fr;
    }
    
    .tch-coordinate-group {
        flex-wrap: wrap;
    }
    
    .tch-chart-south table,
    .tch-chart-north {
        max-width: 100%;
    }
    
    .tch-planets-list {
        grid-template-columns: 1fr;
    }
}

/* Dark Theme */
.tch-horoscope-wrapper[data-theme="dark"] {
    background: #1a1a1a;
    color: #e0e0e0;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-form {
    background: #2a2a2a;
    border-color: #444;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-input,
.tch-horoscope-wrapper[data-theme="dark"] .tch-select {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-chart-south td {
    background: #2a2a2a;
    border-color: #555;
    color: #e0e0e0;
}

/* Tamil Font Support */
.tch-horoscope-wrapper[lang="ta"] {
    font-family: 'Latha', 'Tamil MN', sans-serif;
}

/* Hindi Font Support */
.tch-horoscope-wrapper[lang="hi"] {
    font-family: 'Mangal', 'Noto Sans Devanagari', sans-serif;
}

/* Telugu Font Support */
.tch-horoscope-wrapper[lang="te"] {
    font-family: 'Gautami', 'Noto Sans Telugu', sans-serif;
}

/* Malayalam Font Support */
.tch-horoscope-wrapper[lang="ml"] {
    font-family: 'Kartika', 'Noto Sans Malayalam', sans-serif;
}

/* ============================================
   NORTH INDIAN CHART CSS - Table-based
   Add/Replace in assets/css/horoscope.css
   ============================================ */

.tch-chart-north {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
}

.tch-north-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #333;
    background: white;
    table-layout: fixed;
}

.tch-north-cell {
    border: 1px solid #333;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    height: 80px;
    position: relative;
}

.tch-north-cell .tch-house-number {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 3px;
}

.tch-north-cell .tch-house-sign {
    font-size: 10px;
    color: #999;
    margin-bottom: 5px;
}

.tch-north-cell .tch-house-planets {
    font-size: 13px;
    font-weight: 600;
    color: #0366d6;
    word-wrap: break-word;
}

/* Center cell styling */
.tch-north-center {
    background: #f6f8fa;
    border: none;
    text-align: center;
    vertical-align: middle;
}

.tch-chart-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* Add diagonal lines using pseudo-elements on specific cells */

/* Top-left diagonal (House 12) */
.tch-h12::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 141%;
    height: 2px;
    background: #333;
    transform-origin: top right;
    transform: rotate(45deg);
}

/* Top-right diagonal (House 2) */
.tch-h2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 141%;
    height: 2px;
    background: #333;
    transform-origin: top left;
    transform: rotate(-45deg);
}

/* Bottom-left diagonal (House 8) */
.tch-h8::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 141%;
    height: 2px;
    background: #333;
    transform-origin: bottom right;
    transform: rotate(-45deg);
}

/* Bottom-right diagonal (House 6) */
.tch-h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 141%;
    height: 2px;
    background: #333;
    transform-origin: bottom left;
    transform: rotate(45deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tch-chart-north {
        max-width: 100%;
        padding: 10px;
    }
    
    .tch-north-cell {
        padding: 5px;
        height: 60px;
        font-size: 9px;
    }
    
    .tch-north-cell .tch-house-number {
        font-size: 9px;
    }
    
    .tch-north-cell .tch-house-sign {
        font-size: 8px;
    }
    
    .tch-north-cell .tch-house-planets {
        font-size: 11px;
    }
}
/**
 * Location Autocomplete Styles
 * Add this to assets/css/horoscope.css
 */

/* Autocomplete Wrapper */
.tch-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

/* Results Container */
.tch-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #d1d5da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    margin-top: -1px;
}

/* Result Item */
.tch-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.tch-autocomplete-item:last-child {
    border-bottom: none;
}

.tch-autocomplete-item:hover,
.tch-autocomplete-item.selected {
    background-color: #f6f8fa;
}

.tch-autocomplete-item.selected {
    border-left: 3px solid #0366d6;
}

/* Location Name */
.tch-location-name {
    font-weight: 600;
    color: #24292e;
    font-size: 14px;
    margin-bottom: 2px;
}

/* Location Details */
.tch-location-details {
    font-size: 12px;
    color: #586069;
}

/* Location Meta */
.tch-location-meta {
    font-size: 11px;
    color: #959da5;
    margin-top: 2px;
}

/* Loading State */
.tch-autocomplete-loading {
    padding: 15px;
    text-align: center;
    color: #586069;
    font-size: 13px;
}

.tch-autocomplete-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #d1d5da;
    border-top-color: #0366d6;
    border-radius: 50%;
    animation: tch-spin 0.6s linear infinite;
}

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

/* Error State */
.tch-autocomplete-error {
    padding: 15px;
    text-align: center;
    color: #cb2431;
    font-size: 13px;
}

/* Empty State */
.tch-autocomplete-empty {
    padding: 15px;
    text-align: center;
    color: #586069;
    font-size: 13px;
}

/* Search Icon (optional) */
.tch-search-input-wrapper {
    position: relative;
}

.tch-search-input-wrapper::before {
    content: '\1F50D'; /* 🔍 magnifying glass emoji */
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #586069;
    font-size: 14px;
}

.tch-search-input-wrapper input {
    padding-left: 35px;
}

/* Focus State */
.tch-autocomplete-wrapper input:focus {
    border-color: #0366d6;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
    border-radius: 4px 4px 0 0;
}

.tch-autocomplete-wrapper input:focus + .tch-autocomplete-results {
    border-top: 1px solid #0366d6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .tch-autocomplete-results {
        max-height: 200px;
    }
    
    .tch-autocomplete-item {
        padding: 12px 10px;
    }
    
    .tch-location-name {
        font-size: 13px;
    }
    
    .tch-location-details {
        font-size: 11px;
    }
}

/* Dark Theme Support */
.tch-horoscope-wrapper[data-theme="dark"] .tch-autocomplete-results {
    background: #2a2a2a;
    border-color: #444;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-autocomplete-item {
    border-bottom-color: #333;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-autocomplete-item:hover,
.tch-horoscope-wrapper[data-theme="dark"] .tch-autocomplete-item.selected {
    background-color: #333;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-location-name {
    color: #e0e0e0;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-location-details {
    color: #999;
}

/* Scrollbar Styling */
.tch-autocomplete-results::-webkit-scrollbar {
    width: 8px;
}

.tch-autocomplete-results::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tch-autocomplete-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.tch-autocomplete-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/**
 * Enhanced Results Section - Prominent Basic Info Display
 * Add to assets/css/horoscope.css
 */

/* ========================================
   ENHANCED BASIC INFO SECTION
   ======================================== */

.tch-basic-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

/* Decorative background pattern */
.tch-basic-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Header section */
.tch-basic-info-header {
    text-align: center;
    padding: 20px 30px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.tch-basic-info-header h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.tch-basic-info-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 8px 0 0 0;
}

/* Info grid */
.tch-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    padding: 0;
}

/* Individual info card */
.tch-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 25px;
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.tch-info-item:last-child {
    border-right: none;
}

.tch-info-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* Icon container */
.tch-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Different colors for each item */
.tch-info-item:nth-child(1) .tch-info-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tch-info-item:nth-child(2) .tch-info-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tch-info-item:nth-child(3) .tch-info-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Label styling */
.tch-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    min-width: auto;
}

/* Value styling */
.tch-info-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 8px;
}

/* Sub-info (pada, etc.) */
.tch-info-sub {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Decorative divider */
.tch-info-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tch-info-item:hover::after {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tch-info-grid {
        grid-template-columns: 1fr;
    }
    
    .tch-info-item {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .tch-info-item:last-child {
        border-bottom: none;
    }
    
    .tch-basic-info-header h3 {
        font-size: 20px;
    }
    
    .tch-info-value {
        font-size: 24px;
    }
}

/* Dark theme support */
.tch-horoscope-wrapper[data-theme="dark"] .tch-basic-info {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-info-item {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.05);
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-info-item:hover {
    background: rgba(30, 41, 59, 1);
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-info-label {
    color: #94a3b8;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-info-value {
    color: #f1f5f9;
}

/* Alternative compact style (optional) */
.tch-basic-info.compact {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tch-basic-info.compact .tch-info-item {
    padding: 20px 15px;
    background: transparent;
}

.tch-basic-info.compact .tch-info-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
    margin-bottom: 10px;
}

.tch-basic-info.compact .tch-info-value {
    font-size: 22px;
}

/* Print styles */
@media print {
    .tch-basic-info {
        background: #ffffff !important;
        box-shadow: none;
        border: 2px solid #000000;
        page-break-inside: avoid;
    }
    
    .tch-basic-info::before {
        display: none;
    }
    
    .tch-info-item {
        background: #ffffff !important;
        border-color: #cccccc !important;
    }
    
    .tch-info-icon {
        background: #eeeeee !important;
        box-shadow: none;
    }
}

/* Language-specific font support */
.tch-horoscope-wrapper[lang="ta"] .tch-info-value,
.tch-horoscope-wrapper[lang="te"] .tch-info-value,
.tch-horoscope-wrapper[lang="ml"] .tch-info-value,
.tch-horoscope-wrapper[lang="kn"] .tch-info-value,
.tch-horoscope-wrapper[lang="hi"] .tch-info-value {
    font-weight: 600; /* Slightly lighter weight for Indian languages */
    font-size: 26px; /* Slightly smaller for better rendering */
}

/* Tamil font */
.tch-horoscope-wrapper[lang="ta"] {
    font-family: 'Latha', 'Tamil MN', 'Nirmala UI', sans-serif;
}

/* Telugu font */
.tch-horoscope-wrapper[lang="te"] {
    font-family: 'Gautami', 'Noto Sans Telugu', 'Nirmala UI', sans-serif;
}

/* Malayalam font */
.tch-horoscope-wrapper[lang="ml"] {
    font-family: 'Kartika', 'Noto Sans Malayalam', 'Nirmala UI', sans-serif;
}

/* Kannada font */
.tch-horoscope-wrapper[lang="kn"] {
    font-family: 'Tunga', 'Noto Sans Kannada', 'Nirmala UI', sans-serif;
}

/* Hindi font */
.tch-horoscope-wrapper[lang="hi"] {
    font-family: 'Mangal', 'Noto Sans Devanagari', 'Nirmala UI', sans-serif;
}
/* Language Switcher Links */
.tch-language-switcher {
    text-align: center;
    margin: 30px 0 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f6f8fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.tch-switcher-label {
    font-size: 14px;
    color: #495057;
    margin-bottom: 12px;
    font-weight: 500;
}

.tch-language-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tch-lang-link {
    padding: 8px 18px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    color: #0366d6;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tch-lang-link:hover {
    background: #0366d6;
    color: white;
    border-color: #0366d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(3, 102, 214, 0.3);
}

.tch-lang-link:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tch-language-links {
        gap: 8px;
    }
    
    .tch-lang-link {
        padding: 6px 14px;
        font-size: 14px;
    }
}
/* Add to existing horoscope.css */

/* ========================================
   PERSONAL INFORMATION SECTION
   ======================================== */

.tch-personal-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
}

/* Name Field */
#tch-name {
    font-size: 16px;
    font-weight: 500;
}

#tch-name:focus {
    border-color: #0366d6;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

/* Gender Radio Buttons */
.tch-gender-options {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.tch-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid #d1d5da;
    border-radius: 6px;
    background: white;
    transition: all 0.2s;
}

.tch-radio-label:hover {
    border-color: #0366d6;
    background: #f6f8fa;
}

.tch-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tch-radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #0366d6;
}

.tch-radio-label:has(input:checked) {
    border-color: #0366d6;
    background: #e6f2ff;
}

/* ========================================
   PRINT CONTROLS
   ======================================== */

.tch-print-controls {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #f6f8fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.tch-btn-print {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-size: 16px;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.tch-btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.tch-btn-print:active {
    transform: translateY(0);
}

.tch-print-tip {
    margin-top: 12px;
    font-size: 13px;
    color: #495057;
    font-style: italic;
}

/* ========================================
   PRINT HEADER & FOOTER (Hidden on screen)
   ======================================== */

.tch-print-header,
.tch-print-footer {
    display: none; /* Hidden on screen, shown in print CSS */
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .tch-gender-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .tch-radio-label {
        width: 100%;
        justify-content: center;
    }
    
    .tch-btn-print {
        width: 100%;
        font-size: 15px;
    }
}

/* ========================================
   LANGUAGE-SPECIFIC FONTS
   ======================================== */

.tch-horoscope-wrapper[lang="ta"] #tch-name,
.tch-horoscope-wrapper[lang="hi"] #tch-name,
.tch-horoscope-wrapper[lang="te"] #tch-name,
.tch-horoscope-wrapper[lang="ml"] #tch-name,
.tch-horoscope-wrapper[lang="kn"] #tch-name {
    font-size: 18px; /* Larger for better rendering */
}

/* ========================================
   LANGUAGE TOGGLE
   ======================================== */

.tch-language-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: -10px auto 25px;
    background: #e9ecef;
    border-radius: 8px;
    padding: 4px;
    width: fit-content;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.tch-lang-toggle-btn {
    padding: 8px 24px;
    border: none;
    background: transparent;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 100px;
}

.tch-lang-toggle-btn:hover {
    color: #212529;
}

.tch-lang-toggle-btn.active {
    background: #ffffff;
    color: #0366d6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tch-lang-toggle-btn:focus {
    outline: none;
}

/* Animation for smooth transition */
.tch-language-toggle {
    position: relative;
}

.tch-lang-toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0366d6, transparent);
    border-radius: 3px;
    opacity: 0.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tch-language-toggle {
        width: 100%;
        margin: -10px 0 20px;
    }
    
    .tch-lang-toggle-btn {
        flex: 1;
        min-width: auto;
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Dark theme support */
.tch-horoscope-wrapper[data-theme="dark"] .tch-language-toggle {
    background: #2a2a2a;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-lang-toggle-btn {
    color: #e0e0e0;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-lang-toggle-btn.active {
    background: #444;
    color: #4da6ff;
}

/* ========================================
   BIRTH DETAILS SUMMARY (Visible on screen)
   ======================================== */

.tch-birth-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: none; /* Hidden until results are shown */
}

.tch-birth-summary.visible {
    display: block;
}

.tch-summary-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.tch-summary-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px 0;
}

.tch-summary-header p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.tch-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.tch-summary-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s;
}

.tch-summary-item:hover {
    border-color: #0366d6;
    box-shadow: 0 2px 6px rgba(3, 102, 214, 0.1);
}

.tch-summary-icon {
    font-size: 24px;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.tch-summary-content {
    flex: 1;
}

.tch-summary-label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.tch-summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    display: block;
}

/* Edit button (optional - for scrolling back to form) */
.tch-edit-form-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #0366d6;
    border-radius: 6px;
    color: #0366d6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-top: 15px;
}

.tch-edit-form-btn:hover {
    background: #0366d6;
    color: white;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .tch-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .tch-summary-item {
        padding: 10px 12px;
    }
    
    .tch-summary-icon {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }
    
    .tch-summary-value {
        font-size: 14px;
    }
}

/* Dark theme support */
.tch-horoscope-wrapper[data-theme="dark"] .tch-birth-summary {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-color: #444;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-summary-item {
    background: #333;
    border-color: #555;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-summary-label {
    color: #999;
}

.tch-horoscope-wrapper[data-theme="dark"] .tch-summary-value {
    color: #f0f0f0;
}

/* Print - hide toggle */
@media print {
    .tch-language-toggle {
        display: none !important;
    }
}