/* Card page styles */

/* AI Landscape Section */
.ai-landscape-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.ai-landscape-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
}

.ai-landscape-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-landscape-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.ai-landscape-image:hover {
    transform: scale(1.02);
}
.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 .text-page-title instead */
}

.section-description {
    /* Use design system class .text-description instead */
}

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

.cards-grid.single-card {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.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;
    min-height: auto;
    height: auto;
}

.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: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

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

/* Streak Badge */
.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;
}

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

/* Text display styles - ensure no truncation */
.text-body,
.text-card-title,
.card-content p,
.card-content h2,
.card-content h3 {
    overflow: visible;
    text-overflow: initial;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-height: none;
    line-height: 1.6;
}

/* Category-specific colors - matching gallery and my_cards pages */
.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 {
    /* Use design system class .text-card-title instead */
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card-description {
    /* Use design system class .text-body instead */
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.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;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.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-text {
    font-size: 0.875rem;
    color: #718096;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.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);
}

/* Main Actions */
.main-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.main-actions .btn {
    min-width: 150px;
}

/* Share Options */
.share-options {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 2rem 0 3rem 0;
}

.share-options h3 {
    /* Use design system class .text-subtitle instead */
    margin-bottom: 1.5rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
    color: white;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.facebook {
    background: #4267b2;
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.tiktok {
    background: #000;
}

.social-btn.snapchat {
    background: #fffc00;
    color: #000;
}

.social-btn.whatsapp {
    background: #25d366;
}

/* Simplified social buttons - only X and LinkedIn */
.social-buttons-simplified {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.social-buttons-simplified .social-btn {
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
}

.social-buttons-simplified .social-btn svg {
    width: 24px;
    height: 24px;
}

/* Update X (Twitter) brand color to black */
.social-buttons-simplified .social-btn.twitter {
    background: #000;
}

.social-buttons-simplified .social-btn.twitter:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-buttons-simplified .social-btn.linkedin:hover {
    background: #005885;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3);
}

/* Privacy toggle button styling */
.privacy-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.privacy-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.privacy-toggle i {
    font-size: 0.875rem;
}

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

/* Lock icon specific styling */
.privacy-toggle .bi-lock {
    color: #ef4444;
}

.privacy-toggle .bi-unlock {
    color: #10b981;
}

/* Privacy toggle button states */
.privacy-toggle[data-is-public="false"] {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.privacy-toggle[data-is-public="false"]:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #f87171;
    color: #7f1d1d;
}

.privacy-toggle[data-is-public="true"] {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #14532d;
}

.privacy-toggle[data-is-public="true"]:hover:not(:disabled) {
    background: #dcfce7;
    border-color: #86efac;
    color: #0f172a;
}

/* Copy notification styling */
.copy-notification {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Related Cards */
.related-cards {
    padding: 3rem 0;
    background: #f8f9fa;
}

.related-cards h2 {
    /* Use design system class .text-section-title instead */
    text-align: center;
    margin-bottom: 2rem;
}

/* Button styles now handled by design system */

/* Mobile Responsive */
@media (max-width: 768px) {
    .my-cards-section {
        padding: 2rem 0;
    }
    
    .section-header h1 {
        /* Mobile scaling handled by design system */
    }
    
    .card-title {
        /* Mobile scaling handled by design system */
    }
    
    .card-description {
        /* Mobile scaling handled by design system */
    }
    
    .main-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .main-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .social-buttons {
        gap: 0.75rem;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
    }
    
    .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;
    }
    
    .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 {
        /* Mobile scaling handled by design system */
    }
    
    .card-item {
        padding: 1rem;
    }
    
    .card-title {
        /* Mobile scaling handled by design system */
    }
    
    .card-description {
        /* Mobile scaling handled by design system */
    }
}

/* Translation Notice Styles */
.card-translation-notice {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-translation-notice i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.translation-text {
    color: #1e40af;
    font-size: 0.875rem;
    font-weight: 500;
}

.translation-details {
    margin-top: 0.5rem;
}

.translation-details summary {
    color: #3b82f6;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.translation-details summary:hover {
    color: #1d4ed8;
}

.original-prompt,
.translated-prompt {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.original-prompt {
    background: #fef3c7;
    border: 1px solid #f59e0b;
}

.translated-prompt {
    background: #d1fae5;
    border: 1px solid #10b981;
}

.original-prompt strong,
.translated-prompt strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}