:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.8);
    --glass-border: rgba(255, 204, 0, 0.1);
    --primary: #ffcc00;
    --secondary: #e6b800;
    --accent: #ffd633;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    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;
}

h1, h2, .logo {
    font-family: 'Poppins', sans-serif;
}

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

/* Background Effects */
.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 204, 0, 0.08), transparent),
                radial-gradient(circle at 90% 80%, rgba(255, 204, 0, 0.05), transparent);
    z-index: -1;
    pointer-events: none;
}

/* Header & Nav */
header {
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    height: 40px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Discord Button */
.btn-discord {
    background: #5865F2;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, transform 0.2s;
    margin-right: 10px;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.user-info {
    display: none;
    align-items: center;
    gap: 12px;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.highlight {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
}

.hero p {
    max-width: 600px;
    margin: 0 auto;
}

/* Server Status Box */
.server-status {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.server-ip-box {
    background: rgba(255, 204, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 204, 0, 0.2);
    padding: 15px 30px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.05);
}

.server-ip-box:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    background: rgba(255, 204, 0, 0.1);
    box-shadow: 0 15px 40px rgba(255, 204, 0, 0.15);
}

.server-ip-box:active {
    transform: scale(0.98);
}

.ip-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ip-address {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.copy-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.server-ip-box:hover .copy-hint {
    opacity: 1;
}

/* Copy Animation */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); filter: brightness(1.5); }
    100% { transform: scale(1); }
}

.copy-animate {
    animation: copySuccess 0.4s var(--transition);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s var(--transition), box-shadow 0.2s var(--transition);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Filters & Search */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    background: var(--card-bg);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 4px;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s var(--transition);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.search-box input {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 14px;
    width: 300px;
    outline: none;
    transition: border-color 0.2s var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
}

/* Grid & Cards */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    padding-bottom: 80px;
}

.idea-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    transition: transform 0.3s var(--transition), border-color 0.3s var(--transition), box-shadow 0.3s var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeIn 0.5s var(--transition);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.idea-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.category-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: rgba(0, 210, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.status-pending { background: rgba(210, 153, 34, 0.15); color: var(--warning); }
.status-progress { background: rgba(58, 123, 213, 0.15); color: var(--secondary); }
.status-done { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.status-rejected { background: rgba(248, 81, 73, 0.15); color: var(--danger); }

.idea-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.idea-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: all 0.3s var(--transition);
}

.idea-card p.expanded {
    display: block;
    -webkit-line-clamp: initial;
    max-height: none;
}

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: -15px;
    margin-bottom: 20px;
    display: none;
    transition: color 0.2s;
}

.read-more-btn:hover {
    color: var(--accent);
    text-decoration: underline;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.vote-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vote-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--transition);
}

.vote-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.vote-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.vote-count {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.admin-actions-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.admin-actions-btn:hover {
    color: var(--text-primary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s var(--transition);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: #161b22;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 30px;
    transform: scale(0.9);
    transition: transform 0.3s var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: #0d1117;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 15px;
    color: white;
    font-family: inherit;
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Admin Menu */
.admin-menu {
    position: absolute;
    background: #1c2128;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    width: 180px;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 500;
}

.admin-menu-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 8px 12px;
    text-transform: uppercase;
}

.status-change {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.status-change:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-menu-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 4px 0;
}

.delete-btn {
    color: var(--danger) !important;
}

.delete-btn:hover {
    background: rgba(248, 81, 73, 0.1) !important;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .filters { flex-direction: column; align-items: stretch; }
    .search-box input { width: 100%; }
    .ideas-grid { grid-template-columns: 1fr; }
}
