html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #050507;
    --card-bg: rgba(20, 20, 25, 0.7);
    --accent-cyan: #00f2ff;
    --accent-purple: #7000ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1#brand-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    letter-spacing: 5px;
    cursor: pointer;
    user-select: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-cyan);
    text-shadow: var(--neon-shadow);
}

/* Hero Section */
#hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 10% 0;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.accent {
    color: var(--accent-cyan);
    text-shadow: var(--neon-shadow);
}

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

/* Content Grid */
#content-grid {
    padding: 4rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Section Styling */
.section-header {
    grid-column: 1 / -1;
    border-left: 4px solid var(--accent-cyan);
    padding-left: 1rem;
    margin: 3rem 0 1rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    font-family: 'Rajdhani', sans-serif;
}

.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.label {
    color: var(--text-secondary);
}

.value {
    font-weight: 600;
    transition: filter 0.3s ease;
}

/* Hidden state class */
.value-hidden {
    filter: blur(10px);
    opacity: 0.3;
}

/* Edit Mode styling */
[contenteditable="true"] {
    outline: 2px dashed var(--accent-cyan);
    padding: 2px 5px;
    border-radius: 4px;
}

#edit-overlay {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 2000;
}

/* Earning Potential & Guidelines */
.earning-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.earning-badge {
    display: inline-block;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-cyan);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin: 2px;
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.guidelines-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.85rem;
    border-left: 3px solid var(--accent-purple);
}

.guidelines-box h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
}

/* Link Lists */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.link-item {
    display: block;
    max-width: 100%;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-item:hover {
    color: var(--accent-cyan);
}

.app-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
#save-btn, #export-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    transition: var(--transition);
}

#save-btn {
    background: var(--accent-cyan);
    color: #000;
}

#export-btn {
    background: #222;
    color: #fff;
    border: 1px solid var(--glass-border);
}

.hidden { display: none !important; }

/* Utilities */
.glitch-text:hover {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@media (max-width: 768px) {
    #hero { flex-direction: column; text-align: center; height: auto; padding-top: 8rem; }
    .hero-title { font-size: 2.5rem; }
}

/* CRUD Controls */
.add-btn {
    display: none;
    margin-left: 1rem;
    background: var(--accent-cyan);
    color: #000;
    border: none;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    vertical-align: middle;
    transition: var(--transition);
}

.add-btn:hover {
    box-shadow: var(--neon-shadow);
    transform: scale(1.05);
}

.delete-btn {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 85, 0.2);
    color: #ff0055;
    border: 1px solid #ff0055;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.delete-btn:hover {
    background: #ff0055;
    color: #fff;
}

/* Link item delete */
.link-item-wrapper {
    position: relative;
    display: inline-block;
}

/* Visibility toggles */
.edit-mode-active .add-btn,
.edit-mode-active .delete-btn {
    display: inline-block !important;
}

.edit-mode-active .card {
    padding-top: 2rem !important; /* Make room for delete button */
}
