:root {
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #2563eb;
    --accent-light: #eff6ff;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --success: #10b981;
    --success-light: #ecfdf5;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, hsla(210, 100%, 93%, 1) 0, transparent 50%), 
        radial-gradient(at 100% 100%, hsla(40, 100%, 93%, 1) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.app-container {
    width: 100%;
    max-width: 500px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.app-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.back-btn, .icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-btn:hover, .icon-btn:hover {
    color: var(--accent);
}

/* Card Stack */
.card-stack-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.faith-card {
    position: absolute;
    width: 100%;
    max-width: 340px;
    height: 480px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform-origin: 50% 100%;
    will-change: transform;
    cursor: grab;
    overflow: hidden;
}

/* Dark overlay for readability */
.faith-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 0;
}

.faith-card:active {
    cursor: grabbing;
}

/* Decorative Quotes */
.faith-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-family: 'Outfit', serif;
    font-size: 8rem;
    color: var(--accent-light);
    line-height: 1;
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 30px 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-text {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.card-author {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Brand watermark at bottom */
.card-brand {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0.9;
    z-index: 2;
}

.card-brand img {
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Background Large Watermark */
.card-bg-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.card-bg-watermark img {
    width: 100%;
    height: auto;
}

/* Visual Swipe Indicators */
.swipe-indicator {
    position: absolute;
    top: 30px;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    z-index: 10;
    border: 4px solid;
    border-radius: 12px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.swipe-indicator i {
    font-size: 2.5rem;
}

.indicator-left {
    right: 30px;
    border-color: var(--danger);
    color: var(--danger);
    transform: rotate(15deg);
}

.indicator-right {
    left: 30px;
    border-color: var(--success);
    color: var(--success);
    transform: rotate(-15deg);
}

/* Controls */
.controls {
    padding: 20px 0 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.control-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.control-btn.small-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--accent);
}

.control-btn:active {
    transform: scale(0.9);
}

.no-btn {
    color: var(--danger);
}
.no-btn:hover {
    background: var(--danger-light);
}

.yes-btn {
    color: var(--success);
}
.yes-btn:hover {
    background: var(--success-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.empty-state h2 {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 30px;
}

.primary-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.primary-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Toast */
.toast {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
