/*
Theme Name: Freelgo Redirect
Theme URI: https://freelgo.pl
Author: Przemek
Description: Simple redirect page for Freelgo backend - redirects to freelgo.app
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freelgo-redirect
*/

/* ========================================
   CSS Variables & Base
   ======================================== */
:root {
    --color-bg: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-card: #1a1a24;
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-accent: #22d3ee;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-border: #2d2d3a;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-main);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Main Container
   ======================================== */
.redirect-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.redirect-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 150%;
    background: var(--gradient-glow);
    pointer-events: none;
}

.redirect-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 480px;
}

/* ========================================
   Logo
   ======================================== */
.redirect-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.redirect-logo img {
    height: 56px;
    width: auto;
}

.redirect-logo svg {
    flex-shrink: 0;
}

/* ========================================
   Text Content
   ======================================== */
.redirect-text {
    margin-bottom: 40px;
}

.redirect-text h1 {
    margin-bottom: 16px;
}

.redirect-text p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

/* ========================================
   Button
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 0 80px rgba(99, 102, 241, 0.4);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ========================================
   Floating Orbs Animation
   ======================================== */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.3);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(168, 85, 247, 0.3);
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: rgba(34, 211, 238, 0.2);
    top: 50%;
    left: 10%;
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(10px, -20px) scale(1.05);
    }
    50% {
        transform: translate(-5px, 10px) scale(0.95);
    }
    75% {
        transform: translate(-15px, -10px) scale(1.02);
    }
}

/* ========================================
   Pulse Animation for Button
   ======================================== */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 60px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 80px rgba(99, 102, 241, 0.5);
    }
}

.btn-primary {
    animation: pulse 3s ease-in-out infinite;
}

.btn-primary:hover {
    animation: none;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 480px) {
    .redirect-logo {
        font-size: 1.25rem;
        gap: 12px;
    }
    
    .redirect-logo img,
    .redirect-logo svg {
        height: 48px;
        width: 48px;
    }
    
    .btn {
        padding: 16px 32px;
        width: 100%;
    }
}
