/* తెలుగు సంస్కృతి స్టైల్స్ - Telugu Cultural Styles */

:root {
    --saffron: #ff9933;
    --saffron-dark: #cc7a29;
    --temple-red: #c62828;
    --temple-red-dark: #8e0000;
    --temple-gold: #ffd700;
    --temple-gold-dark: #b8860b;
    --sand: #f4e6d1;
    --sand-dark: #e6d5b8;
    --text-dark: #3e2723;
    --text-gold: #b8860b;
    --border-pattern: #8b4513;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Telugu', 'తెలుగు', 'Gautami', sans-serif;
    background-color: var(--sand);
    color: var(--text-dark);
    line-height: 1.8;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Kolam/Rangoli Background */
.kolam-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(200, 40, 40, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 30% 50%, rgba(200, 40, 40, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(200, 40, 40, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 90% 30%, rgba(200, 40, 40, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Toranam (తోరణం) */
.toranam {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 5px;
    background: linear-gradient(to bottom, var(--saffron) 0%, transparent 100%);
    z-index: 100;
    pointer-events: none;
}

.mango-leaf {
    width: 30px;
    height: 50px;
    background: linear-gradient(135deg, var(--saffron), var(--temple-gold));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: sway 3s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

/* Header Styles */
.app-header {
    background: linear-gradient(135deg, var(--temple-red), var(--temple-red-dark));
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    border-bottom: 5px solid var(--temple-gold);
}

.app-header::before,
.app-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background: repeating-linear-gradient(45deg, var(--temple-gold), var(--temple-gold) 10px, transparent 10px, transparent 20px);
}

.title-with-symbols {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.om-symbol,
.auspicious-symbol {
    font-size: 2rem;
    color: var(--temple-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cultural-tagline {
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 0.5rem;
    color: var(--temple-gold);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Card Styles */
.card {
    background: rgba(255, 250, 240, 0.95);
    border-radius: 15px 50px 15px 50px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    border: 2px solid var(--temple-gold);
}

.card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed var(--temple-gold);
    border-radius: 10px 45px 10px 45px;
    pointer-events: none;
}

.main-card {
    background: linear-gradient(145deg, #fff9e6, #fff0d4);
}

/* Labels and Inputs */
.telugu-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: var(--temple-red);
    margin-bottom: 1rem;
    font-weight: bold;
}

.label-decoration {
    font-size: 2rem;
    color: var(--temple-gold);
}

.input-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1.5rem;
    font-size: 1.3rem;
    line-height: 2;
    border: 3px solid var(--temple-gold);
    border-radius: 15px;
    background: white;
    resize: vertical;
    transition: all 0.3s;
}

.input-textarea:focus {
    outline: none;
    border-color: var(--temple-red);
    box-shadow: 0 0 0 5px rgba(198, 40, 40, 0.1);
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 40px 10px 40px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--temple-red), var(--temple-red-dark));
    color: white;
    border: 2px solid var(--temple-gold);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    color: var(--text-dark);
    border: 2px solid var(--temple-gold);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.telugu {
    font-size: 1.2rem;
}

.english-small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Result Card */
.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-header h3 {
    font-size: 1.8rem;
    color: var(--temple-red);
    border-bottom: 2px dotted var(--temple-gold);
    padding-bottom: 0.5rem;
}

.left-symbol,
.right-symbol {
    font-size: 2rem;
    color: var(--temple-gold);
}

.output-box {
    min-height: 120px;
    padding: 1.5rem;
    background: #fdf5e6;
    border: 3px solid var(--temple-gold);
    border-radius: 10px;
    font-size: 1.5rem;
    line-height: 2;
    color: var(--text-dark);
    position: relative;
}

.placeholder-text {
    color: #999;
    font-size: 1.2rem;
}

/* Cultural Decoration - Lamp */
.cultural-decoration {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.lamp {
    width: 50px;
    height: 30px;
    background: var(--temple-gold);
    border-radius: 50% 50% 20% 20%;
    position: relative;
}

.flame {
    width: 15px;
    height: 25px;
    background: radial-gradient(circle at 50% 0%, #ffd700, #ff8c00);
    border-radius: 50% 50% 20% 20%;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { height: 25px; opacity: 1; }
    50% { height: 30px; opacity: 0.9; }
}

/* Recent Section */
.recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.left-border,
.right-border {
    font-size: 2rem;
    color: var(--temple-gold);
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: #fff9e6;
    border-left: 5px solid var(--temple-red);
    border-radius: 10px 30px 10px 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.recent-item:hover {
    transform: translateX(10px);
    background: #ffe4b5;
}

.recent-original {
    font-family: 'Noto Sans Telugu', sans-serif;
    font-size: 1.2rem;
    color: var(--temple-red);
}

.recent-transliteration {
    color: var(--text-gold);
    font-size: 1.1rem;
}

.recent-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: var(--temple-gold);
}

/* Credits Card */
.credits-card {
    background: linear-gradient(145deg, #faf0e6, #f5e6d3);
    border: 3px solid var(--temple-gold);
}

.credits-header {
    text-align: center;
    margin-bottom: 2rem;
}

.peeta {
    font-size: 1.5rem;
    color: var(--temple-red);
}

.credits-header .title {
    font-size: 1.3rem;
    color: var(--temple-gold);
    margin: 0 1rem;
}

.credit-item {
    text-align: center;
    margin: 1.5rem 0;
}

.main-credit .concept {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.telugu-bold {
    color: var(--temple-red);
    font-weight: bold;
}

.english-name {
    color: var(--text-gold);
    font-weight: normal;
}

.titles,
.pioneer {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0.3rem 0;
    font-style: italic;
}

.credit-divider {
    text-align: center;
    margin: 1.5rem 0;
}

.danda {
    font-size: 2rem;
    color: var(--temple-red);
}

.flower {
    font-size: 1.5rem;
    color: var(--temple-gold);
    margin: 0 1rem;
}

.association .development {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.dept {
    color: var(--temple-red);
    font-size: 1.2rem;
    margin: 0.3rem 0;
}

.college {
    font-size: 1.3rem;
    color: var(--text-gold);
    font-weight: bold;
}

.location {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Disclaimer Card */
.disclaimer-card {
    background: #fff5e6;
    border: 3px solid var(--temple-red);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.warning-symbol {
    font-size: 2rem;
    color: var(--temple-red);
}

.disclaimer-content {
    padding: 1rem;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-dark);
}

.disclaimer-content p {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--temple-gold);
}

.disclaimer-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px dotted var(--temple-gold);
    color: #666;
}

/* Feedback Card */
.feedback-card {
    text-align: center;
}

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.email-symbol {
    font-size: 2rem;
    color: var(--temple-red);
}

.feedback-content .email {
    font-size: 1.3rem;
    margin: 1rem 0;
}

.feedback-content a {
    color: var(--temple-red);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--temple-gold);
    border-radius: 20px;
    transition: all 0.3s;
}

.feedback-content a:hover {
    background: var(--temple-red);
    color: white;
}

.separator {
    margin: 0 1rem;
    color: var(--temple-gold);
}

.feedback-note {
    color: #666;
    font-style: italic;
}

.auspicious-ending {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    color: var(--temple-gold);
}

/* Footer */
.app-footer {
    background: var(--temple-red-dark);
    color: white;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    position: relative;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.watermark {
    color: var(--temple-gold);
}

.pwa-badge {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--temple-gold);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

.telugu-flag {
    background: white;
    color: var(--temple-red);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

.closing-symbols {
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .title-with-symbols {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .recent-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Print Styles for Screenshot */
@media print {
    body {
        background: white;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 2px solid black;
    }
    
    .btn,
    .install-prompt {
        display: none !important;
    }
}