/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --success-color: #4CAF50;
    --dark-bg: #000000;
    --darker-bg: #0a0a0a;
    --light-bg: #f5f5f5;
    --border-color: #333;
    --text-color: #333;
    --text-light: #666;
    --white-text: #ffffff;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--dark-bg);
}

/* For pages with iframes */
body.iframe-page {
    background: #ffffff;
    overflow: hidden;
}

/* For internal pages with content */
body.content-page {
    background: var(--light-bg);
    overflow-y: auto;
}

/* Top Navigation Bar - Black */
.top-bar {
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1000;
}

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-center {
    flex: 1;
    justify-content: center;
    max-width: 800px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--white-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo:hover {
    color: var(--primary-color);
}

/* Category Selector */
.category-wrapper {
    position: relative;
}

.category-toggle {
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--white-text);
    cursor: pointer;
    padding: 10px 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.category-toggle:hover {
    background: #1a1a1a;
}

.category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
}

.category-dropdown.active {
    display: block;
}

.category-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--white-text);
    text-decoration: none;
    transition: background 0.2s;
}

.category-dropdown a:hover {
    background: #1a1a1a;
}

.category-dropdown a.active {
    background: var(--primary-color);
    color: white;
}

.category-select {
    display: none;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-action, .btn-suggest, .btn-add {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-suggest {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    padding: 10px 30px;
}

.btn-suggest:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-suggest:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-thumbs-up {
    background: #2a2a2a;
    color: var(--white-text);
}

.btn-thumbs-up:hover {
    background: var(--success-color);
    color: white;
}

.btn-thumbs-up.active {
    background: var(--success-color);
    color: white;
}

.btn-thumbs-down {
    background: #2a2a2a;
    color: var(--white-text);
}

.btn-thumbs-down:hover {
    background: var(--danger-color);
    color: white;
}

.btn-thumbs-down.active {
    background: var(--danger-color);
    color: white;
}

.btn-favorite {
    background: #2a2a2a;
    color: var(--white-text);
}

.btn-favorite:hover {
    background: #ff4081;
    color: white;
}

.btn-favorite.active {
    background: #ff4081;
    color: white;
}

.btn-add {
    background: var(--secondary-color);
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add:hover {
    background: #1976D2;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-button {
    padding: 8px 16px;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--white-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-button:hover {
    background: #1a1a1a;
}

.user-button .username {
    display: inline;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    min-width: 200px;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--white-text);
    text-decoration: none;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: #1a1a1a;
}

.user-dropdown a i {
    width: 16px;
    text-align: center;
}

.btn-login, .btn-signup {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-login {
    color: var(--white-text);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background: var(--darker-bg);
}

.btn-signup {
    background: var(--primary-color);
    color: white;
}

.btn-signup:hover {
    background: #45a049;
}

/* Page Stats */
.page-stats {
    background: var(--dark-bg);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid var(--border-color);
    color: var(--white-text);
    position: relative;
    z-index: 999;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.stat-icon {
    font-size: 16px;
    color: var(--primary-color);
}

/* iFrame Container */
.iframe-container {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

body.iframe-page .page-stats ~ .iframe-container {
    top: 105px;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.no-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    background: var(--light-bg);
    color: var(--text-color);
}

.no-content h2 {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-color);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-submit, .btn-cancel, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    flex: 1;
}

.btn-submit:hover {
    background: #45a049;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel {
    background: #f0f0f0;
    color: var(--text-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

/* Messages */
.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.message:empty {
    display: none;
}

/* Auth Pages - Modern black theme */
.auth-page {
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

.auth-page::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(33, 150, 243, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 40% 20%, rgba(76, 175, 80, 0.02) 0%, transparent 25%);
    animation: slowRotate 60s linear infinite;
    pointer-events: none;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-box {
    background: #ffffff;
    padding: 50px 45px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.auth-box h1 {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 35px;
    color: #666;
    font-size: 17px;
    font-weight: 400;
}

.auth-form {
    margin-top: 30px;
}

.auth-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.auth-form .form-group label {
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 10px;
    font-size: 14px;
    display: block;
}

.auth-form .form-group input {
    padding: 15px 18px;
    font-size: 15px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
}

.auth-form .form-group input:hover {
    border-color: #d0d0d0;
    background: #ffffff;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.08);
}

.auth-form .form-group small {
    color: #888;
    font-size: 13px;
    margin-top: 6px;
}

.auth-form .btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #45a049 100%);
    border: none;
    box-shadow: 
        0 4px 15px rgba(76, 175, 80, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form .btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.auth-form .btn-submit:hover::before {
    left: 100%;
}

.auth-form .btn-submit:hover {
    background: linear-gradient(135deg, #45a049 0%, var(--primary-color) 100%);
    box-shadow: 
        0 6px 20px rgba(76, 175, 80, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.auth-form .btn-submit:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(76, 175, 80, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    color: #666;
    font-size: 15px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.auth-footer a:hover::after {
    width: 100%;
}

.auth-footer a:hover {
    color: #45a049;
}

.auth-footer.back-link {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e8e8e8;
}

.auth-footer.back-link a {
    color: #888;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-footer.back-link a:hover {
    color: var(--text-color);
}

.auth-footer.back-link a::after {
    display: none;
}

/* Success message styling */
.auth-box .message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.auth-box .message.success strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    color: #155724;
}

.auth-box .message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: none;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-box {
        padding: 40px 30px;
    }
    
    .auth-box h1 {
        font-size: 32px;
    }
    
    .auth-box h2 {
        font-size: 16px;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Profile Pages */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-section h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.category-checkbox {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-checkbox:hover {
    background: var(--light-bg);
}

.category-checkbox input {
    width: auto;
    margin-right: 10px;
}

/* Favorites */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.favorite-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.favorite-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.favorite-preview iframe {
    width: 100%;
    height: 400px;
    border: none;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: top left;
}

.favorite-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.favorite-card:hover .favorite-overlay {
    opacity: 1;
}

.btn-visit {
    padding: 10px 20px;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.favorite-info {
    padding: 15px;
}

.favorite-info h3 {
    font-size: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--light-bg);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.favorite-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    margin-bottom: 10px;
}

.favorited-date {
    font-size: 12px;
    color: var(--text-light);
}

/* Admin Panel */
.admin-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
}

.admin-menu {
    list-style: none;
}

.admin-menu li {
    margin-bottom: 5px;
}

.admin-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: var(--light-bg);
    color: var(--primary-color);
}

.admin-menu .badge {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--danger-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background: var(--light-bg);
}

.admin-content h1 {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
    font-size: 40px;
}

.stat-card .stat-info h3 {
    font-size: 32px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.stat-card .stat-info p {
    color: var(--text-light);
    font-size: 14px;
}

.admin-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-section h2 {
    margin-bottom: 20px;
}

.admin-filters {
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    gap: 10px;
}

.filter-form input,
.filter-form select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.filter-form input {
    flex: 1;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
}

.admin-table tr:hover {
    background: #fafafa;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-admin {
    background: #d1ecf1;
    color: #0c5460;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.moderation-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.moderation-info {
    margin-bottom: 15px;
}

.moderation-info h3 {
    margin-bottom: 10px;
    word-break: break-all;
}

.moderation-preview {
    width: 100%;
    height: 400px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 15px 0;
}

.moderation-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.rejection-reason {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Static Pages */
.static-page {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.static-page h1 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.static-page h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.static-page h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.static-page p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.static-page ul, .static-page ol {
    margin-bottom: 15px;
    margin-left: 30px;
}

.static-page li {
    margin-bottom: 8px;
}

.static-page a {
    color: var(--primary-color);
    text-decoration: none;
}

.static-page a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer - Only on internal pages */
.footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 10px;
        height: 56px;
        gap: 8px;
    }
    
    .nav-left .logo {
        display: none;
    }
    
    .nav-center {
        flex: 1;
        justify-content: flex-start;
        gap: 8px;
        min-width: 0;
    }
    
    .category-toggle {
        padding: 8px 10px;
        font-size: 16px;
    }
    
    .action-buttons {
        gap: 4px;
    }
    
    /* Hide vote/favorite buttons for non-logged in users on mobile */
    body:not(.user-logged-in) .btn-thumbs-up,
    body:not(.user-logged-in) .btn-thumbs-down,
    body:not(.user-logged-in) .btn-favorite,
    body:not(.user-logged-in) .btn-add {
        display: none;
    }
    
    .btn-action {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .btn-suggest {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .btn-add {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .nav-right {
        flex-shrink: 0;
        gap: 6px;
    }
    
    .btn-login, .btn-signup {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .user-button {
        padding: 8px 10px;
        font-size: 18px;
    }
    
    .user-button .username {
        display: none;
    }
    
    .user-button .fa-chevron-down {
        display: none;
    }
    
    .page-stats {
        font-size: 11px;
        gap: 12px;
        padding: 6px 8px;
    }
    
    .stat-item {
        gap: 4px;
    }
    
    .iframe-container {
        top: 56px;
    }
    
    body.iframe-page .page-stats ~ .iframe-container {
        top: 89px;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-box {
        padding: 40px 30px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.btn-link {
    color: var(--white-text);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-link:hover {
    background: var(--darker-bg);
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.inline-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}