/* Cat-Inspired Music Review Website Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cat Color Palette */
    --cat-blue: #8b5cf6;
    --cat-dark-blue: #5b21b6;
    --cat-black: #0f0f0f;
    --cat-dark-gray: #1a1a1a;
    --cat-gray: #2d2d2d;
    --cat-light-gray: #404040;
    --cat-white: #ffffff;
    --cat-accent: #a855f7;
    
    /* Gradients */
    --cat-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --card-gradient: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    --glass-effect: rgba(255, 255, 255, 0.05);
    
    /* Shadows */
    --glow-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --inner-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cat-black);
    color: var(--cat-white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated background particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, #1c0022 0%, #161616 100%);
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--cat-accent);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.3; }
}

/* Main container */
.ps5-container {
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--glass-effect);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.cat-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.logo-symbol {
    width: 48px;
    height: 48px;
    background: var(--cat-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--glow-shadow);
}

.current-time {
    font-size: 16px;
    color: var(--cat-accent);
    font-weight: 500;
}

.session-timer {
    font-size: 14px;
    color: var(--cat-white);
    font-weight: 400;
    opacity: 0.8;
}

.header-right {
    display: flex;
    gap: 16px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--cat-white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: var(--cat-gradient);
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow);
}

/* Main content */
.main-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Now playing section */
.now-playing-section {
    margin-bottom: 20px;
}

.now-playing-card {
    background: var(--card-gradient);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.now-playing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(174, 0, 255, 0.1), transparent);
    transition: left 0.5s;
}

.now-playing-card:hover::before {
    left: 100%;
}

.np-placeholder {
    text-align: center;
    opacity: 0.6;
}

.np-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.np-content {
    display: flex;
    gap: 40px;
    width: 100%;
    align-items: center;
}

.np-video {
    flex: 1;
    max-width: 560px;
}

.np-video iframe {
    width: 100%;
    height: 315px;
    border-radius: 16px;
    border: none;
}

.np-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.np-info h2 {
    font-size: 32px;
    font-weight: 700;
    background: var(--cat-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.np-info p {
    font-size: 18px;
    color: var(--cat-accent);
    font-weight: 500;
}

.np-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cat-white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--cat-gradient);
    transform: scale(1.1);
    box-shadow: var(--glow-shadow);
}

/* Progress bar */
.np-progress {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--cat-gradient);
    width: 0%;
    transition: width 0.1s ease;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Comment section */
.np-comment-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.np-comment-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--cat-accent);
}

.np-comment-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--ps5-white);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    resize: none;
    cursor: default;
    line-height: 1.5;
}

.np-comment-section textarea[readonly] {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.np-comment-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Music library */
.music-library {
    flex: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.view-controls {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--cat-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cat-white);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: var(--cat-gradient);
    box-shadow: var(--glow-shadow);
}

/* Music grid */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.music-card {
    background: var(--card-gradient);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.music-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow), var(--glow-shadow);
    border-color: var(--cat-accent);
}

.card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.music-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cat-gradient);
    border: none;
    color: var(--cat-white);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-info p {
    color: var(--ps5-accent);
    font-size: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--cat-white);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--cat-gradient);
    border-color: var(--cat-accent);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--card-gradient);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--card-shadow);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--cat-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cat-white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #ff4757;
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--cat-accent);
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--ps5-white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--cat-accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(183, 0, 255, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--cat-gray);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--cat-white);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--cat-light-gray);
    transform: translateY(-2px);
}

.btn-primary {
    padding: 12px 24px;
    background: var(--cat-gradient);
    border: none;
    border-radius: 12px;
    color: var(--cat-white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow);
}

/* Context menu */
.context-menu {
    position: absolute;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    z-index: 1001;
    min-width: 150px;
    display: none;
}

.context-menu.show {
    display: block;
}

.context-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
}

.context-item:hover {
    background: var(--ps5-gradient);
}

.context-item:first-child {
    border-radius: 12px 12px 0 0;
}

.context-item:last-child {
    border-radius: 0 0 12px 12px;
}

/* Responsive design */
@media (max-width: 768px) {
    .ps5-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .np-content {
        flex-direction: column;
    }
    
    .np-video {
        max-width: 100%;
    }
    
    .music-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cat-dark-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--cat-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cat-accent);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--cat-accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}