/* Custom styles for CS2 CFG BOX */
body {
    background-color: #f8f9fa;
    font-family: 'Roboto', sans-serif;
}

/* App Bar Improvements */
.mdui-appbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Hero Section Improvements */
.hero-section {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-title {
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-subtitle {
    opacity: 0.9;
    font-weight: 300;
}

/* Search Card Improvements */
.search-card {
    max-width: 600px;
    margin: -80px auto 40px; /* Pull up into hero section */
    padding: 30px;
    border-radius: 12px !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
    background: white;
    position: relative;
    z-index: 10;
}

.search-btn {
    height: 48px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
}

/* Feature Cards */
.feature-item {
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    border: 1px solid #eee;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: transparent;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #1a237e, #e91e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Announcements Bar */
.announcement-bar {
    background: #fff3e0;
    color: #e65100;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid #ffe0b2;
    display: none; /* JS will toggle */
    animation: slideDown 0.5s ease;
}

.announcement-item {
    display: inline-block;
    margin-right: 20px;
}

.announcement-tag {
    background: #ff9800;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    color: #757575;
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

/* Share Cards (for other pages) */
.share-card {
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px !important;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    overflow: hidden;
}

.share-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12) !important;
}

.share-card .mdui-card-primary {
    padding-bottom: 0;
}

.share-card .mdui-card-primary-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
}

.share-card .mdui-card-primary-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #757575;
}

.share-card .mdui-card-content {
    padding: 16px;
    color: #666;
    font-size: 14px;
    min-height: 120px; /* Ensure consistent height */
}

.code-display {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.25em;
    font-weight: 600;
    letter-spacing: 2px;
    background: #f0f2f5;
    padding: 8px 16px;
    border-radius: 6px;
    color: #1a237e;
    margin: 16px 0;
    border: 1px dashed #c5cae9;
    user-select: all;
    cursor: pointer;
    transition: all 0.2s;
}

.code-display:hover {
    background: #e8eaf6;
    border-color: #7986cb;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    align-items: center;
    color: #757575;
    font-size: 13px;
}

.stat-item i {
    font-size: 16px;
    margin-right: 4px;
}

.like-btn {
    cursor: pointer;
    transition: color 0.3s transform 0.2s;
    user-select: none;
}

.like-btn:hover {
    color: #e91e63;
}

.like-btn:active {
    transform: scale(1.2);
}

.like-btn.liked {
    color: #e91e63;
}

.like-btn.liked i {
    animation: heartBeat 0.4s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.download-btn {
    border-radius: 6px !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: none !important;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 !important;
    height: 36px !important;
    line-height: 36px !important;
}

.download-btn:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #283593 100%);
}

/* Dialog Improvements */
.mdui-dialog {
    border-radius: 12px !important;
    max-width: 400px !important;
    overflow: hidden !important;
    height: auto !important;
    display: block !important;
}

.mdui-dialog .mdui-dialog-content {
    padding: 24px !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: 80vh !important;
}

.mdui-dialog .mdui-dialog-actions {
    padding: 8px 16px !important;
}

.file-info-box {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px 12px; /* Reduce vertical padding */
    margin: 12px 0; /* Reduce margin */
    text-align: left;
}

.file-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 4px;
    color: #555;
}

.file-info-row:last-child {
    margin-bottom: 0;
}

.file-info-label {
    font-weight: 500;
    color: #333;
}
