:root {
    --primary: #9b59b6;
    --primary-light: #bc8f8f;
    --navy: #0a0e1a;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html, body {
    background: #0a0a0a;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: relative;
}

/* Background Layers Matching Main Page */
.hero-bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    filter: contrast(1.15) brightness(0.95);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    animation: bgFloat 24s ease-in-out infinite alternate;
}

@keyframes bgFloat {
    0%   { transform: scale(1) translate(0px, 0px); }
    50%  { transform: scale(1.07) translate(-14px, -10px); }
    100% { transform: scale(1.03) translate(12px, 8px); }
}

.hero-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.24) 0%, rgba(0, 212, 255, 0.12) 40%, rgba(10, 10, 10, 0) 75%);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0%   { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 0.9; transform: scale(1.12); }
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.15) 50%, rgba(10,10,10,0.9) 100%);
}


/* Header Back Nav Hover */
header a {
    transition: all 0.25s ease !important;
}
header a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Top Left Platforms Info Box */
.top-left-info {
    position: absolute;
    top: 75px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: fadeIn 1s ease-out, floatInfo 5s ease-in-out infinite alternate;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.top-left-info:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

.top-left-info span {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.2s ease;
}

.top-left-info span:hover:not(.small-text) {
    background: linear-gradient(90deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
}

.top-left-info .small-text {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 5px;
    font-weight: 400;
    -webkit-text-fill-color: initial;
    color: #aaa;
    background: none;
}

/* Main Container Card */
.container {
    background: var(--glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.12);
    width: 90%;
    max-width: 700px;
    text-align: center;
    animation: fadeIn 0.8s ease-out, floatContainer 6s ease-in-out infinite alternate;
    position: relative;
    z-index: 10;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.container:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(168, 85, 247, 0.22);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

h1 span {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #a855f7 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 5s linear infinite;
}

.subtitle {
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Search Container Input Bar */
.search-container {
    display: flex;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: #a855f7;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
}

.input-box {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 15px;
    background: #1a1a1a;
}

.search-icon {
    font-size: 1.2rem;
    color: #666;
    margin-right: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.search-container:focus-within .search-icon {
    color: #a855f7;
    transform: scale(1.1);
}

#url-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.2rem 0.5rem;
    color: #fff;
    font-size: 1rem;
}

#url-input:focus {
    outline: none;
}

.dropdown {
    background: #0056b3;
    color: white;
    border: none;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-left: 1px solid #333;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    transition: background 0.25s ease;
}

.dropdown:hover {
    background-color: #0069d9;
}

.dropdown option {
    background: #1a1a1a;
    color: white;
}

.tamam-btn {
    background: #c0392b;
    color: white;
    border: none;
    padding: 0 40px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.tamam-btn:hover {
    background: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

.tamam-btn:active {
    transform: scale(0.96);
}

/* Status Box Loader */
.status-box {
    margin-top: 2rem;
    animation: fadeIn 0.4s ease-out;
}

.loader {
    width: 44px;
    height: 44px;
    border: 4px solid var(--glass);
    border-top: 4px solid #a855f7;
    border-right: 4px solid #3b82f6;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* Result Box */
.result-box {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    border: 1px solid var(--glass-border);
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

#thumbnail {
    width: 120px;
    height: 70px;
    border-radius: 0.8rem;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.result-box:hover #thumbnail {
    transform: scale(1.04);
}

.info h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.info p {
    font-size: 0.85rem;
    opacity: 0.6;
}

.save-btn {
    background: #27ae60;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-left: auto;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.save-btn:hover {
    background: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.45);
}

footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* KEYFRAMES ANIMATIONS */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes textShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes floatContainer {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

@keyframes floatInfo {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-6px); }
}

@keyframes orbFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.15); }
}

@keyframes orbFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, -40px) scale(1.2); }
}