/* Основни настройки и променливи */
:root {
    --bg-color: #F2F2F7; /* iOS Light Gray */
    --card-bg: rgba(255, 255, 255, 0.75);
    --text-primary: #1C1C1E;
    --text-secondary: #8E8E93;
    --accent-color: #007AFF; /* iOS Blue */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Декоративен фон (Gradient Blob) */
.background-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #FF9F0A 0%, #FF375F 50%, #BF5AF2 100%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Картата */
.card {
    background: var(--card-bg);
    width: 90%;
    max-width: 450px;
    min-height: 350px;
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px); /* Ефект на матирано стъкло */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.quote-icon {
    color: var(--accent-color);
    opacity: 0.8;
    margin-bottom: 20px;
}

.quote-icon span {
    font-size: 48px;
}

.quote-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 30px;
}

#quote-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 15px;
}

#quote-author {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Контроли */
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
}

.control-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.pagination {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Анимации за смяна на текст */
.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}