/* Rick's Interdimensional Radio - Rick & Morty Theme */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Roboto:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --portal-green: #97ce4c;
    --portal-cyan: #44cef6;
    --rick-blue: #12b0c9;
    --morty-yellow: #f0e14a;
    --space-dark: #0b0c10;
    --space-purple: #1a1a2e;
    --text-light: #e8e8e8;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--space-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Portal Background */
.portal-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, var(--portal-green) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.15;
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-text h1 {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: var(--portal-green);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(151, 206, 76, 0.5);
}

.tagline {
    font-size: 0.9rem;
    color: var(--rick-blue);
    font-style: italic;
}

/* Player Card */
.player-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #0d0d15 100%);
    border: 2px solid var(--portal-green);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 0 40px rgba(151, 206, 76, 0.2);
}

.player-header {
    background: rgba(151, 206, 76, 0.1);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(151, 206, 76, 0.3);
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    color: var(--portal-green);
    letter-spacing: 2px;
}

.player-body {
    padding: 30px;
}

/* Visualizer */
.visualizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    margin-bottom: 20px;
}

.bar {
    width: 8px;
    background: var(--portal-green);
    border-radius: 4px;
    animation: equalizer 0.8s ease-in-out infinite;
}

.bar:nth-child(1) {
    height: 20px;
    animation-delay: 0s;
}

.bar:nth-child(2) {
    height: 40px;
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    height: 25px;
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    height: 50px;
    animation-delay: 0.3s;
}

.bar:nth-child(5) {
    height: 35px;
    animation-delay: 0.4s;
}

.bar:nth-child(6) {
    height: 45px;
    animation-delay: 0.5s;
}

.bar:nth-child(7) {
    height: 30px;
    animation-delay: 0.6s;
}

.bar:nth-child(8) {
    height: 20px;
    animation-delay: 0.7s;
}

@keyframes equalizer {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

.now-playing {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1rem;
    color: var(--rick-blue);
}

/* URL Input */
.url-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.url-input-group input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(151, 206, 76, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
}

.url-input-group input:focus {
    outline: none;
    border-color: var(--portal-green);
    box-shadow: 0 0 15px rgba(151, 206, 76, 0.3);
}

.url-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.url-input-group button {
    padding: 15px 30px;
    background: var(--portal-green);
    border: none;
    border-radius: 10px;
    color: var(--space-dark);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.url-input-group button:hover {
    background: var(--morty-yellow);
    transform: scale(1.05);
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(18, 176, 201, 0.1);
    border: 1px solid rgba(18, 176, 201, 0.3);
    border-radius: 8px;
    color: var(--rick-blue);
    font-size: 0.9rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(151, 206, 76, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.info-card h3 {
    font-family: 'Bangers', cursive;
    font-size: 1.1rem;
    color: var(--portal-green);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.info-card.quote {
    background: rgba(240, 225, 74, 0.05);
    border-color: rgba(240, 225, 74, 0.3);
}

.info-card.quote h3 {
    color: var(--morty-yellow);
}

/* Response Box */
.response-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(151, 206, 76, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.response-header {
    padding: 12px 20px;
    background: rgba(151, 206, 76, 0.1);
    border-bottom: 1px solid rgba(151, 206, 76, 0.2);
    color: var(--portal-green);
    font-size: 0.9rem;
}

#response-content {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.footer .small {
    font-size: 0.7rem;
    margin-top: 5px;
    color: rgba(151, 206, 76, 0.5);
}

/* Responsive */
@media (max-width: 700px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .url-input-group {
        flex-direction: column;
    }

    .logo-text h1 {
        font-size: 1.8rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--portal-green);
    border-radius: 3px;
}