/* My Cards Styles */
.my-cards-section {
    padding: 4rem 0;
    background: #ffffff;
    min-height: 80vh;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    /* Use design system class instead */
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-content {
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.card-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

/* Privacy status styling */
.privacy-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.privacy-status-public {
    background: #f0fdf4;
    color: #14532d;
    border-color: #bbf7d0;
}

.privacy-status-private {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.privacy-status i {
    font-size: 0.75rem;
}

.privacy-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.card-category {
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Category-specific colors */
.card-category.category-focus { background: #1e40af; }
.card-category.category-mindfulness { background: #7c3aed; }
.card-category.category-productivity { background: #059669; }
.card-category.category-wellness { background: #ea580c; }
.card-category.category-creativity { background: #c2410c; }
.card-category.category-motivation { background: #dc2626; }
.card-category.category-balance { background: #0d9488; }
.card-category.category-growth { background: #10b981; }
.card-category.category-stress { background: #475569; }
.card-category.category-health { background: #65a30d; }
.card-category.category-goals { background: #d97706; }
.card-category.category-habits { background: #6b7280; }
.card-category.category-energy { background: #f97316; }
.card-category.category-clarity { background: #0284c7; }
.card-category.category-peace { background: #0ea5e9; }
.card-category.category-strength { background: #525252; }
.card-category.category-wisdom { background: #4338ca; }
.card-category.category-joy { background: #fbbf24; }
.card-category.category-purpose { background: #8b5cf6; }
.card-category.category-success { background: #06b6d4; }
.card-category.category-virtue { background: #9ca3af; }
.card-category.category-acceptance { background: #e11d48; }
.card-category.category-resilience { background: #16a34a; }
.card-category.category-discipline { background: #495057; }
.card-category.category-perspective { background: #a21caf; }

.card-date {
    color: #718096;
    font-weight: 500;
}

.card-title {
    margin-bottom: 1rem;
}

.card-title a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
    line-height: 1.3;
}

.card-title a:hover {
    color: #4a90e2;
}

.card-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.card-rationale {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #4a90e2;
    margin-bottom: 1rem;
}

.rationale-bullet {
    color: #4a90e2;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.rationale-text {
    font-size: 0.95rem;
    color: #2d3748;
    font-style: italic;
    line-height: 1.5;
}

.card-prompt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #805ad5;
    margin-bottom: 1.5rem;
}

.prompt-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.prompt-text {
    font-size: 0.875rem;
    color: #718096;
    font-style: italic;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.card-btn {
    flex: 1;
    min-width: 100px;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    text-align: center;
    justify-content: center;
}

.image-toggle {
    /* Remove custom styling to use standard button styles */
}

.image-toggle.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.image-toggle.active:hover {
    background: #3a7bc8;
    border-color: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.image-icon {
    font-size: 1.2rem;
    font-weight: 600;
}

.image-text {
    font-size: 0.75rem;
    font-weight: 500;
}

.card-image {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.close-image {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-image:hover {
    background: rgba(0, 0, 0, 0.9);
}

.cards-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #718096;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.empty-illustration {
    margin-bottom: 2rem;
}

.empty-icon {
    font-size: 4rem;
    opacity: 0.3;
    color: #a0aec0;
}

.empty-state h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #718096;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary {
    background: #262627;
    color: white;
    border: 2px solid #262627;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #525356;
    border-color: #525356;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #262627;
    border: 2px solid #e1e4e8;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #262627;
    color: #262627;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    border: 1px solid #c53030;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c53030, #9c2626);
    transform: translateY(-1px);
}

.btn-danger:disabled {
    background: #fed7d7;
    color: #9c2626;
    border-color: #feb2b2;
    cursor: not-allowed;
    transform: none;
}

/* Delete Modal Styles */
.delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--background-secondary);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px var(--shadow-medium);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-card {
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

.modal-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
    display: block;
}

.processing-icon {
    color: var(--accent-sage);
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-card h2 {
    font-family: inherit;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.modal-warning {
    background: var(--background-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #dc3545;
    margin-bottom: 2rem;
}

.modal-warning p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.modal-confirmation {
    margin-bottom: 2rem;
    text-align: center;
}

.confirmation-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 120px;
}


/* Mobile Responsive */
@media (max-width: 768px) {

    .my-cards-section {
        padding: 2rem 0;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .btn {
        flex: 1;
        min-width: auto;
        text-align: center;
        justify-content: center;
    }
    
    .image-toggle {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .cards-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .card-item {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-header-left {
        width: 100%;
    }
    
    .streak-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h1 {
        font-size: 1.75rem;
    }
    
    .empty-state {
        padding: 3rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .cards-stats {
        padding: 1.5rem;
    }
    
    .card-item {
        padding: 1rem;
    }
    
    .card-title a {
        font-size: 1.25rem;
    }
}

/* Streak Congratulations */
.streak-congratulations {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.congratulatory-message {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Streak Badge on Cards */
.streak-badge {
    background: transparent !important;
    color: #2563eb !important;
    padding: 4px 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.streak-badge::before {
    content: "🔥" !important;
    font-size: 1rem !important;
    display: inline-block !important;
}
