/* Custom styles for 10Mail */
:root {
    /* 主色調 - 明亮的藍綠漸變 */
    --primary-gradient: linear-gradient(135deg, #00D9FF 0%, #00C9FF 50%, #0095FF 100%);
    --secondary-gradient: linear-gradient(135deg, #7DD3FC 0%, #38BDF8 100%);
    
    /* 明亮的色彩系統 */
    --primary-color: #0095FF;
    --secondary-color: #00D9FF;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    
    /* 背景色 - 明亮乾淨 */
    --body-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --hover-bg: #F0F9FF;
    --message-bg: #F0FDFA;
    
    /* 文字顏色 */
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #64748B;
}

body {
    padding-top: 70px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Text gradient */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pricing cards */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.flagship-card {
    position: relative;
    overflow: visible;
}

/* Email cards */
.email-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.email-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.email-card.expired {
    opacity: 0.7;
}

/* Status badges */
.badge-active {
    background: linear-gradient(135deg, #6EE7B7 0%, #34D399 100%);
}

.badge-expired {
    background: linear-gradient(135deg, #FCA5A5 0%, #F87171 100%);
}

/* Message card */
.message-card {
    border-left: 4px solid #0095FF;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.message-card:hover {
    background-color: #F0F9FF;
    transform: translateX(4px);
}

/* Attachment link */
.attachment-link {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border-radius: 0.25rem;
    text-decoration: none;
    color: #0095FF;
    font-weight: 500;
    font-size: 0.875rem;
}

.attachment-link:hover {
    background: linear-gradient(135deg, #BFDBFE 0%, #93C5FD 100%);
    color: #0066CC;
    transform: translateY(-1px);
}

/* Loading spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* User avatar */
#userAvatar, #dashUserAvatar {
    object-fit: cover;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-card .ribbon span {
        font-size: 10px;
        padding: 8px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    /* Override body padding for mobile */
    body {
        padding-top: 70px !important;
    }
    
    /* Fix main element spacing on mobile - use high specificity */
    body main.mt-5.pt-4 {
        margin-top: 1.5rem !important;
        padding-top: 0 !important;
    }
    
    /* When logged in, less space needed */
    body.logged-in main.mt-5.pt-4 {
        margin-top: 0.5rem !important;
    }
    
    /* Hero section mobile fixes with high specificity */
    body #heroSection {
        min-height: auto !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1rem !important;
    }
    
    body #heroSection.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Remove extra padding from inner container */
    #heroSection .container > .row {
        padding: 0 !important;
    }
    
    #heroSection .row.align-items-center.py-5 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Reduce title size on mobile */
    .display-4 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Fix pricing cards grid on mobile */
    #heroSection .col-md-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Remove extra bottom margin from last pricing card */
    #heroSection .col-md-4:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Ensure pricing cards don't overlap */
    .pricing-card {
        margin-bottom: 0 !important;
        height: auto !important;
    }
    
    /* Fix the flagship card margin */
    .flagship-card {
        margin-top: 2rem !important;
    }
    
    /* Ensure proper spacing between all cards */
    #heroSection .row.g-3 > [class*="col-"] {
        padding-bottom: 0.75rem;
    }
    
    #heroSection .row.g-3 > [class*="col-"]:last-child {
        padding-bottom: 0;
    }
}
