@import url('custom.css');

:root {
    --bg-dark: #002b36;
    --bg-darker: #00212b;
    --bg-card: #073642;
    --text-primary: #93a1a1;
    --text-highlight: #eee8d5;
    --accent: #b58900;
    --accent-hover: #cb9b00;
    --danger: #d33682;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--bg-darker); /* Slightly darker background for depth */
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased; /* Crisp text */
}

.fixed-top { 
    z-index: 1030; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Hide scrollbar for top bar */
.top-scroll::-webkit-scrollbar { display: none; }
.top-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.top-scroll a {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.top-scroll a:hover { opacity: 1; }

/* Navbar Styling */
.navbar {
    background: linear-gradient(to right, #002b36, #073642) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Premium Card Styles */
.card { 
    border: none;
    background-color: var(--bg-dark);
    border-radius: 8px; /* Softer corners */
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    overflow: hidden; /* For hover effects */
}

/* Hover effect for cards that are clickable or interactive containers */
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    background-color: #00303d; /* Very subtle lighten */
}

.card-header { 
    background-color: rgba(7, 54, 66, 0.5); /* Semi-transparent */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1.05rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-highlight);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-group-item { 
    background-color: transparent;
    border-color: rgba(255,255,255,0.03); 
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
    transition: background-color 0.2s;
}
.list-group-item:hover {
    background-color: rgba(255,255,255,0.03);
}
.list-group-item a { 
    color: var(--text-primary); 
    text-decoration: none; 
    transition: color 0.2s, padding-left 0.2s;
    display: block;
    font-weight: 500;
}
.list-group-item a:hover { 
    color: #fff; 
    padding-left: 5px; /* Subtle movement hint */
}

/* Badges */
.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.4em 0.7em;
    border-radius: 4px;
}
.badge-primary { 
    background: linear-gradient(135deg, var(--accent), #9e7700);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.btn:active { transform: translateY(1px); }

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #b01f62);
    border: none;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #e0458e, #c4246d);
    box-shadow: 0 4px 8px rgba(211, 54, 130, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #9e7700);
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #cb9b00, #b58900);
    box-shadow: 0 4px 8px rgba(181, 137, 0, 0.3);
}

/* Website Links in Footer */
.website a {
    font-size: 0.95rem;
    display: block;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    color: #aaa;
}
.website a:hover {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
}

/* Search Input Upgrade */
.search-input {
    border-radius: 20px !important;
    background: rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}
.search-input:focus {
    background: rgba(0,0,0,0.4) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(181, 137, 0, 0.2);
}
.search-btn {
    opacity: 0.7;
    transition: opacity 0.2s;
}
.search-btn:hover { opacity: 1; }

/* Tags Cloud Upgrade */
.tag-item {
    background: linear-gradient(to bottom, #073642, #002b36) !important;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.tag-item:hover {
    background: linear-gradient(to bottom, var(--accent), #9e7700) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border-color: transparent;
}

