/* ============================================
   Kart Keşfet - Yapay Zeka Kitabı
   Tinder-style Swipe Uygulaması
   ============================================ */

:root {
    /* Ana Site Renkleri */
    --color-primary: #E8B4A0;
    --color-primary-dark: #d69e8b;
    --color-primary-light: #f5d6c9;
    --color-teal: #5EADB5;
    --color-teal-dark: #4a9ba3;
    
    /* Nötr Renkler */
    --color-bg: #F5F3EF;
    --color-bg-warm: #EDE8E3;
    --color-bg-white: #ffffff;
    --color-dark: #111213;
    --color-dark-secondary: #1d1d1f;
    --color-text: #111213;
    --color-text-secondary: rgba(17, 18, 19, 0.6);
    --color-text-muted: rgba(17, 18, 19, 0.4);
    --color-border: #E8E4DE;
    --color-border-light: rgba(232, 228, 222, 0.5);
    
    /* Fonksiyon Renkleri */
    --color-success: #22c55e;
    --color-success-light: rgba(34, 197, 94, 0.15);
    --color-error: #ef4444;
    --color-error-light: rgba(239, 68, 68, 0.15);
    
    /* Gölgeler */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 12px 40px -8px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 999px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Tipografi */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Geçişler */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg-warm);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* ============================================
   App Container
   ============================================ */
.app-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        160deg,
        var(--color-bg-warm) 0%,
        #E8E3DD 30%,
        #DFD9D2 60%,
        var(--color-bg-warm) 100%
    );
    position: relative;
}

/* Subtle pattern overlay */
.app-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(232, 180, 160, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(94, 173, 181, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        160deg,
        var(--color-bg-warm) 0%,
        #E8E3DD 30%,
        #DFD9D2 60%,
        var(--color-bg-warm) 100%
    );
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.screen.visible {
    opacity: 1;
    visibility: visible;
}

.screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ============================================
   Header
   ============================================ */
.app-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
    z-index: 50;
    min-height: 60px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 8px 10px;
    background: transparent;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
    transform: translateX(-2px);
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.header-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--color-bg-white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

.progress-indicator .current {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.progress-indicator .divider {
    color: var(--color-text-muted);
}

.saved-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg-white));
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-spring);
    color: var(--color-primary-dark);
}

.saved-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg-white);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(232, 180, 160, 0.4);
}

.saved-btn svg {
    width: 20px;
    height: 20px;
}

.saved-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.saved-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--color-dark);
    color: var(--color-bg-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-white);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Cards Container
   ============================================ */
.cards-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.cards-stack {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1/1;
}

.cards-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ============================================
   Card Styles
   ============================================ */
.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    cursor: grab;
    transform-origin: 50% 100%;
    will-change: transform, opacity;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow var(--transition-fast);
}

.card.dragging {
    transition: none;
}

.card:active {
    cursor: grabbing;
}

.card:first-child:hover {
    box-shadow: var(--shadow-hover);
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(94, 173, 181, 0.03), rgba(232, 180, 160, 0.03));
    pointer-events: none;
    padding: 0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border-radius: calc(var(--radius-xl) - 1px);
}

/* Swipe Overlay İkonları */
.swipe-indicator {
    position: absolute;
    top: 20px;
    z-index: 20;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6) rotate(0deg);
    transition: all var(--transition-spring);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.swipe-indicator.like {
    left: 20px;
    background: var(--color-success-light);
    border: 3px solid var(--color-success);
    color: var(--color-success);
}

.swipe-indicator.nope {
    right: 20px;
    background: var(--color-error-light);
    border: 3px solid var(--color-error);
    color: var(--color-error);
}

.swipe-indicator svg {
    width: 28px;
    height: 28px;
}

.swipe-indicator.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.swipe-indicator.like.visible {
    transform: scale(1) rotate(-12deg);
}

.swipe-indicator.nope.visible {
    transform: scale(1) rotate(12deg);
}

/* ============================================
   Footer & Actions
   ============================================ */
.app-footer {
    padding: 16px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.6) 40%);
    position: relative;
    z-index: 10;
}

.hint-text {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 320px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-spring);
    background: var(--color-bg-white);
    box-shadow: var(--shadow-md);
}

.action-btn:active {
    transform: scale(0.92);
}

.action-btn svg {
    transition: transform var(--transition-fast);
}

/* Geç butonu (X) */
.action-btn.skip {
    width: 56px;
    height: 56px;
    color: var(--color-error);
    border: 2.5px solid var(--color-error);
    background: var(--color-bg-white);
}

.action-btn.skip:hover {
    background: var(--color-error);
    color: var(--color-bg-white);
    transform: scale(1.08) rotate(-8deg);
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.35);
}

.action-btn.skip svg {
    width: 24px;
    height: 24px;
}

/* Kaydet butonu (Kalp) */
.action-btn.save {
    width: 64px;
    height: 64px;
    color: var(--color-bg-white);
    background: linear-gradient(135deg, var(--color-success), #16a34a);
    border: none;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.action-btn.save:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.5);
}

.action-btn.save svg {
    width: 28px;
    height: 28px;
}

/* İndir ve Paylaş butonları */
.secondary-actions {
    display: flex;
    gap: 10px;
}

.action-btn.secondary {
    width: 44px;
    height: 44px;
    color: var(--color-text-secondary);
    border: 1.5px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.action-btn.secondary:hover {
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    transform: scale(1.08);
}

.action-btn.secondary svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Complete Screen
   ============================================ */
.complete-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    text-align: center;
}

.complete-icon {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--color-primary-light), rgba(232, 180, 160, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.complete-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-primary-dark);
}

.complete-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.complete-subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.complete-subtitle span {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.complete-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 260px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg-white);
    box-shadow: 0 4px 14px rgba(232, 180, 160, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 180, 160, 0.5);
}

.btn-secondary {
    background: var(--color-bg-white);
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg);
    border-color: var(--color-text-secondary);
}

.btn-link {
    background: transparent;
    color: var(--color-text-secondary);
    padding: 10px;
}

.btn-link:hover {
    color: var(--color-text);
}

.btn.hidden {
    display: none;
}

/* ============================================
   Saved Screen
   ============================================ */
.saved-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    min-height: 60px;
}

.saved-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.saved-title span {
    color: var(--color-primary-dark);
}

.saved-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(
        160deg,
        var(--color-bg-warm) 0%,
        #E8E3DD 50%,
        var(--color-bg-warm) 100%
    );
}

.saved-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.saved-card {
    position: relative;
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
}

.saved-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.saved-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.saved-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 12px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.saved-card:hover .saved-card-overlay {
    opacity: 1;
}

.saved-card-actions {
    display: flex;
    gap: 6px;
}

.saved-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--color-bg-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    transform: translateY(8px);
}

.saved-card:hover .saved-action-btn {
    transform: translateY(0);
}

.saved-action-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg-white);
}

.saved-action-btn svg {
    width: 12px;
    height: 12px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    text-align: center;
    min-height: 300px;
}

.empty-state.hidden {
    display: none;
}

.empty-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-primary-light), rgba(232, 180, 160, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.empty-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.empty-state p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

/* ============================================
   Animations
   ============================================ */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Swipe İpucu Animasyonu */
@keyframes swipeHint {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    15% {
        transform: translateX(40px) rotate(4deg);
    }
    30% {
        transform: translateX(0) rotate(0deg);
    }
    45% {
        transform: translateX(-40px) rotate(-4deg);
    }
    60% {
        transform: translateX(0) rotate(0deg);
    }
    75% {
        transform: translateX(20px) rotate(2deg);
    }
    90% {
        transform: translateX(0) rotate(0deg);
    }
    100% {
        transform: translateX(0) rotate(0deg);
    }
}

.card.swipe-hint {
    animation: swipeHint 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   Responsive - Mobile First
   ============================================ */

/* Small mobile (< 360px) */
@media (max-width: 359px) {
    .app-header {
        padding: 10px 12px;
        min-height: 54px;
    }
    
    .back-btn {
        padding: 6px 10px 6px 8px;
        font-size: 12px;
    }
    
    .back-btn span {
        display: none;
    }
    
    .header-title {
        font-size: 10px;
    }
    
    .progress-indicator {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .saved-btn {
        width: 40px;
        height: 40px;
    }
    
    .saved-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .cards-section {
        padding: 8px;
    }
    
    .cards-stack {
        max-width: calc(100vw - 32px);
    }
    
    .action-buttons {
        gap: 14px;
    }
    
    .action-btn.skip {
        width: 48px;
        height: 48px;
    }
    
    .action-btn.skip svg {
        width: 20px;
        height: 20px;
    }
    
    .action-btn.save {
        width: 54px;
        height: 54px;
    }
    
    .action-btn.save svg {
        width: 24px;
        height: 24px;
    }
    
    .action-btn.secondary {
        width: 38px;
        height: 38px;
    }
    
    .action-btn.secondary svg {
        width: 16px;
        height: 16px;
    }
    
    .saved-grid {
        gap: 10px;
    }
}

/* Standard mobile (360px - 480px) */
@media (min-width: 360px) and (max-width: 480px) {
    .cards-section {
        padding: 12px;
    }
    
    .cards-stack {
        max-width: calc(100vw - 40px);
    }
    
    .action-buttons {
        gap: 16px;
    }
    
    .action-btn.skip {
        width: 52px;
        height: 52px;
    }
    
    .action-btn.save {
        width: 58px;
        height: 58px;
    }
    
    .action-btn.secondary {
        width: 40px;
        height: 40px;
    }
}

/* Large mobile / Small tablet (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .cards-stack {
        max-width: 400px;
    }
    
    .saved-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Tablet (641px - 1024px) */
@media (min-width: 641px) {
    .app-header {
        padding: 14px 24px;
        min-height: 64px;
    }
    
    .back-btn {
        padding: 10px 16px 10px 12px;
        font-size: 14px;
    }
    
    .header-title {
        font-size: 12px;
    }
    
    .progress-indicator {
        font-size: 14px;
        padding: 5px 14px;
    }
    
    .saved-btn {
        width: 46px;
        height: 46px;
    }
    
    .cards-section {
        padding: 24px;
    }
    
    .cards-stack {
        max-width: 420px;
    }
    
    .app-footer {
        padding: 20px 24px 28px;
        gap: 14px;
    }
    
    .action-buttons {
        gap: 24px;
        max-width: 360px;
    }
    
    .action-btn.skip {
        width: 60px;
        height: 60px;
    }
    
    .action-btn.skip svg {
        width: 26px;
        height: 26px;
    }
    
    .action-btn.save {
        width: 68px;
        height: 68px;
    }
    
    .action-btn.save svg {
        width: 30px;
        height: 30px;
    }
    
    .action-btn.secondary {
        width: 46px;
        height: 46px;
    }
    
    .action-btn.secondary svg {
        width: 20px;
        height: 20px;
    }
    
    .saved-content {
        padding: 20px;
    }
    
    .saved-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .complete-title {
        font-size: 28px;
    }
    
    .complete-subtitle {
        font-size: 16px;
    }
}

/* Desktop (> 1024px) */
@media (min-width: 1025px) {
    .app-header {
        padding: 16px 32px;
        min-height: 68px;
    }
    
    .cards-section {
        padding: 32px;
    }
    
    .cards-stack {
        max-width: 480px;
    }
    
    .app-footer {
        padding: 24px 32px 32px;
    }
    
    .action-buttons {
        gap: 28px;
        max-width: 400px;
    }
    
    .action-btn.skip {
        width: 64px;
        height: 64px;
    }
    
    .action-btn.save {
        width: 72px;
        height: 72px;
    }
    
    .action-btn.secondary {
        width: 50px;
        height: 50px;
    }
    
    .saved-content {
        padding: 24px 32px;
    }
    
    .saved-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .complete-icon {
        width: 96px;
        height: 96px;
    }
    
    .complete-icon svg {
        width: 44px;
        height: 44px;
    }
    
    .complete-title {
        font-size: 32px;
    }
}

/* Landscape mode adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .app-header {
        min-height: 50px;
        padding: 8px 16px;
    }
    
    .cards-section {
        padding: 8px 16px;
    }
    
    .cards-stack {
        max-width: none;
        max-height: calc(100vh - 140px);
        max-height: calc(100dvh - 140px);
        width: auto;
        aspect-ratio: 1/1;
    }
    
    .app-footer {
        padding: 8px 16px 12px;
        gap: 6px;
    }
    
    .hint-text {
        font-size: 11px;
    }
    
    .action-btn.skip {
        width: 44px;
        height: 44px;
    }
    
    .action-btn.skip svg {
        width: 20px;
        height: 20px;
    }
    
    .action-btn.save {
        width: 50px;
        height: 50px;
    }
    
    .action-btn.save svg {
        width: 22px;
        height: 22px;
    }
    
    .action-btn.secondary {
        width: 36px;
        height: 36px;
    }
    
    .action-btn.secondary svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   Focus States (Accessibility)
   ============================================ */
.action-btn:focus-visible,
.btn:focus-visible,
.back-btn:focus-visible,
.saved-btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
