/*
Theme Name: Liquid Glass Art
Theme URI: https://example.com/liquid-glass-art
Author: ChatGPT
Author URI: https://openai.com
Description: A DeviantArt‑like WordPress theme with a beautiful liquid glass aesthetic. It features custom post types for art, contests, tutorials, journals and commissions; custom user roles and profiles; a follow system; like/favorite/comment interactions; a responsive masonry gallery with infinite scroll and lightbox; REST API enhancements; and numerous other social features. Built with modern CSS and a dark, frosted glass design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: liquid-glass-art
*/

/*
 * Base variables for the liquid glass aesthetic. These CSS custom properties power
 * the frosted glass panels, neon glows and dark gradients that define the look
 * and feel of the theme. Modify these values to quickly tweak colors or
 * brightness across the entire site.
 */
:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
    --primary-color: #00d0ff;
    --secondary-color: #aa00ff;
    --accent-color: #ff00aa;
    --text-color: #e0e0e0;
    --muted-color: #888888;
    --bg-color: #0a0a13;
    --bg-gradient: linear-gradient(135deg, #0f0f27 0%, #100721 50%, #0a0a13 100%);
    --font-primary: 'Urbanist', sans-serif;
    --font-secondary: 'Sora', sans-serif;
    --card-radius: 1rem;
    --transition-speed: 0.3s;
}

/* Base styles */
body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--text-color);
    background: var(--bg-gradient);
    background-attachment: fixed;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

/* Glass card component */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    color: var(--text-color);
    cursor: pointer;
    transition: background var(--transition-speed), transform var(--transition-speed);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .site-branding {
    padding: 1rem;
    display: flex;
    align-items: center;
}

.site-header .site-branding img {
    height: 40px;
    margin-right: 0.5rem;
}

.primary-navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-navigation li {
    margin: 0 0.75rem;
}

.primary-navigation li a {
    font-weight: 500;
    padding: 1rem;
    display: block;
    color: var(--text-color);
}

.primary-navigation li a:hover {
    color: var(--accent-color);
}

/* Header actions */
.header-actions {
    gap: 0.5rem;
}

.header-actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Profile menu */
.profile-menu {
    position: relative;
}
.profile-menu .profile-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.profile-menu .profile-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    list-style: none;
    padding: 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
    min-width: 140px;
}
.profile-menu:hover .profile-dropdown {
    display: block;
}
.profile-dropdown li {
    margin-bottom: 0.5rem;
}
.profile-dropdown li:last-child {
    margin-bottom: 0;
}
.profile-dropdown a {
    color: var(--text-color);
    display: block;
}
.profile-dropdown a:hover {
    color: var(--accent-color);
}

/* Registration form username status */
.username-status {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

/* Tag bar */
.lga-tag-bar {
    margin-top: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.lga-tag-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}
.lga-tag-bar .tag-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    font-size: 0.85rem;
    transition: background var(--transition-speed), color var(--transition-speed);
}
.lga-tag-bar .tag-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
}

/* Studio styles */
.studio-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.studio-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--card-radius);
    color: var(--text-color);
    margin-bottom: 0.25rem;
    transition: background var(--transition-speed), color var(--transition-speed);
}
.studio-nav-link:hover,
.studio-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}
.studio-section {
    margin-bottom: 2rem;
}
.drafts-table {
    width: 100%;
    border-collapse: collapse;
}
.drafts-table th, .drafts-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
}
.drafts-table th {
    text-align: left;
}
.draft-actions .btn {
    margin-right: 0.5rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 6rem;
}

/* Footer */
.site-footer {
    padding: 2rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Masonry layout using CSS columns (fallback without JS) */
.masonry {
    column-count: 1;
    column-gap: 1rem;
}

@media(min-width: 600px) {
    .masonry {
        column-count: 2;
    }
}

@media(min-width: 900px) {
    .masonry {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* Lightbox base styles (will be enhanced by JS) */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--card-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Utility classes */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Forms */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--card-radius);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    color: var(--text-color);
    margin-bottom: 1rem;
}

input[type="submit"], button[type="submit"] {
    cursor: pointer;
}

/* Comments */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--card-radius);
}

.comment-list .comment-author {
    font-weight: 600;
}

.comment-list .comment-meta {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin-bottom: 0.5rem;
}

.comment-list .comment-content {
    margin-top: 0.5rem;
}