
/* Daily Planner Specific Styles */

.planner-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.planner-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.planner-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.planner-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: var(--space-lg);
    background: linear-gradient(45deg, #ffffff, #f8fafc, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    opacity: 0.95;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.progress-indicator {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 10px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
    backdrop-filter: blur(10px);
}

.progress-fill {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

.progress-text {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Card Game Section */
.card-game-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, #fef7ff 100%);
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.card-game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.card-stack {
    position: relative;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-2xl);
    z-index: 1;
}

.activity-card {
    position: absolute;
    width: 340px;
    height: 480px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-2xl);
    cursor: grab;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    border: 3px solid var(--gray-100);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.activity-card.dragging {
    cursor: grabbing;
    transform: rotate(8deg) scale(1.08);
    z-index: 15;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.25);
}

.activity-card.swipe-right {
    animation: swipeRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.activity-card.swipe-left {
    animation: swipeLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.activity-card:nth-child(1) {
    z-index: 3;
    transform: scale(1) translateY(0);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.2);
}

.activity-card:nth-child(2) {
    z-index: 2;
    transform: scale(0.96) translateY(15px);
    opacity: 0.85;
}

.activity-card:nth-child(3) {
    z-index: 1;
    transform: scale(0.92) translateY(30px);
    opacity: 0.7;
}

.card-icon {
    font-size: 4.5rem;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.2));
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.card-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    max-width: 280px;
}

.card-category {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(79, 172, 254, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.action-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn span {
    font-size: 0.75rem;
    margin-top: var(--space-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reject-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.reject-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
}

.accept-btn {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(81, 207, 102, 0.4);
}

.accept-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 15px 35px rgba(81, 207, 102, 0.5);
}

/* Results Section */
.results-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
    position: relative;
}

.results-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.results-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gray-800);
    margin-bottom: var(--space-md);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-header p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 500px;
    margin: 0 auto;
}

.day-plan-card {
    max-width: 650px;
    margin: 0 auto var(--space-3xl);
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 2px solid var(--gray-100);
}

.plan-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
}

.plan-header h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.plan-date {
    font-size: 1.125rem;
    opacity: 0.95;
    font-weight: 500;
}

.plan-watermark {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-lg);
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}

.plan-content {
    padding: var(--space-2xl);
}

.plan-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    background: var(--gray-50);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.plan-item:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, var(--gray-50) 0%, #fef7ff 100%);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1);
}

.plan-item-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.plan-item-content {
    flex: 1;
}

.plan-item-title {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-xs);
    font-size: 1.125rem;
}

.plan-item-category {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-footer {
    padding: var(--space-lg) var(--space-2xl);
    background: var(--gray-50);
    text-align: center;
    border-top: 2px solid var(--gray-100);
}

.plan-stats {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.results-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

/* Animations */
@keyframes swipeRight {
    to {
        transform: translateX(100vw) rotate(45deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes swipeLeft {
    to {
        transform: translateX(-100vw) rotate(-45deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

.activity-card {
    animation: cardAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.text-center {
    text-align: center;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .activity-card {
        width: 300px;
        height: 420px;
        padding: var(--space-lg);
    }
    
    .card-icon {
        font-size: 3.5rem;
        margin-bottom: var(--space-md);
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-description {
        font-size: 1rem;
        max-width: 250px;
    }
    
    .action-buttons {
        gap: var(--space-lg);
    }
    
    .action-btn {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .planner-hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .results-actions {
        gap: var(--space-md);
        flex-direction: column;
        align-items: center;
    }
    
    .results-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .card-stack {
        height: 480px;
    }
}

@media (max-width: 480px) {
    .activity-card {
        width: 280px;
        height: 400px;
        padding: var(--space-md);
    }
    
    .day-plan-card {
        margin: 0 var(--space-md) var(--space-xl);
    }
    
    .plan-header {
        padding: var(--space-lg);
    }
    
    .plan-content {
        padding: var(--space-lg);
    }
    
    .plan-item {
        padding: var(--space-md);
        gap: var(--space-md);
    }
    
    .card-game-section {
        padding: var(--space-xl) 0;
    }
}

/* Enhanced hover effects for desktop */
@media (hover: hover) {
    .activity-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 35px 60px rgba(0, 0, 0, 0.2);
    }
    
    .plan-item:hover .plan-item-icon {
        transform: scale(1.2) rotate(10deg);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .activity-card,
    .progress-fill,
    .action-btn,
    .plan-item {
        animation: none !important;
        transition: none !important;
    }
}
