/* ====== RESET & BASE ====== */
:root {
    --bg-color: #0f172a;
    /* Slate 900 */
    --card-bg: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #cbd5e1;
    /* Slate 300 */
    --accent: #3b82f6;
    /* Blue 500 */
    --accent-hover: #2563eb;
    /* Blue 600 */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --blob-1: #3b82f6;
    --blob-2: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    /* allow scrolling if content gets too tall */
    overflow-x: hidden;
    position: relative;
    padding: 1rem;
    /* prevent sticking to top/bottom on small screens */
}

/* ====== BACKGROUND BLOBS ====== */
.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s ease-in-out infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background: var(--blob-1);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    background: var(--blob-2);
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* ====== GLASS CARD UI ====== */
.app-container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ====== QUOTE CONTENT ====== */
.quote-header {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    text-align: center;
}

.quote-content {
    position: relative;
    text-align: center;
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quote-text-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 1rem;
    transition: all 0.3s;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.quote-text-urdu {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 2;
    color: var(--accent);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    border-top: 1px dashed var(--glass-border);
    padding-top: 1.5rem;
}

.hidden {
    display: none !important;
}

.translate-bar {
    display: flex;
    justify-content: center;
    margin-top: -1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background-color: rgba(59, 130, 246, 0.1);
    /* light accent background on hover */
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--glass-border);
    position: absolute;
}

.fa-quote-left {
    top: -10px;
    left: -20px;
}

.fa-quote-right {
    bottom: -10px;
    right: -20px;
}

.quote-author {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: right;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ====== BUTTONS & CONTROLS ====== */
.quote-footer {
    display: flex;
    flex-direction: column;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2.5rem;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    flex: 1;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--accent);
}

/* ====== TOOLTIPS ====== */
.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 60px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    font-weight: 400;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ====== TOAST NOTIFICATION ====== */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.toast.show {
    bottom: 30px;
}

/* ====== ANIMATIONS ====== */
.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 600px) {
    .glass-panel {
        padding: 2rem 1.2rem;
        gap: 1.5rem;
    }

    .quote-text {
        font-size: 1.8rem;
    }

    .quote-text-urdu {
        font-size: 1.6rem;
        line-height: 1.8;
    }

    .btn-primary {
        padding: 0.8rem 1rem;
    }

    .quote-header {
        margin-bottom: -1rem;
        /* tighten spacing on top */
    }
}