@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

:root {
    /* Bright Theme Variables */
    --primary: #6c5ce7;
    --primary-hover: #5b4cc4;
    --accent: #00cec9;
    --bg-gradient: linear-gradient(135deg, #FFF0F5 0%, #E6E6FA 100%);
    /* Lavender Blush to Lavender */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --text-main: #2d3436;
    --text-muted: #636e72;
    --card-bg: #ffffff;
    --success: #00b894;
    --error: #d63031;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(108, 92, 231, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 206, 201, 0.1) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 20px 40px -10px rgba(31, 38, 135, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    border-radius: 32px;
}

/* Header */
header {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

.logo span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Main Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Card Content */
.shortener-card {
    width: 100%;
    max-width: 800px;
    padding: 2.5rem;
    transition: transform 0.3s ease;
}

.shortener-card:hover {
    transform: translateY(-5px);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

input[type="url"] {
    width: 100%;
    padding: 1.2rem 1.8rem;
    border: 2px solid rgba(108, 92, 231, 0.2);
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    backdrop-filter: blur(10px);
    font-family: inherit;
    color: var(--text-main);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), inset 0 2px 4px rgba(0, 0, 0, 0.02);
    text-overflow: ellipsis;
}

input[type="url"]:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
}

input[type="url"]::placeholder {
    color: #636e72;
    font-weight: 400;
}

/* Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #a29bfe 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(108, 92, 231, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(108, 92, 231, 0.5);
    background: linear-gradient(135deg, #5b4cc4 0%, #9189f8 100%);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Turnstile */
.cf-turnstile {
    margin: 0 auto 1rem;
    display: flex;
    justify-content: center;
}

/* Result Area */
.result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(0, 184, 148, 0.2);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result p {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.short-link-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#shortLink {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    flex: 1;
    overflow-wrap: break-word;
}

#shortLink:hover {
    text-decoration: underline;
}

.btn-copy {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: rgba(0, 184, 148, 0.2);
}

/* Error */
.error {
    color: var(--error);
    background: rgba(214, 48, 49, 0.1);
    padding: 0.8rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.hidden {
    display: none;
}

/* Ad Section */
.ad-section {
    margin: 0.5rem auto;
    width: 100%;
    max-width: 970px;
    text-align: center;
}

.ad-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.ad-container {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}


.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

footer a,
.footer-link-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

footer a:hover,
.footer-link-btn:hover {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .shortener-card {
        padding: 1.5rem;
    }
}

/* Footer Link Button */
.footer-link {
    background: none;
    border: none;
    color: var(--primary);
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 52, 54, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    animation: slideUpBanner 0.5s ease-out;
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    text-align: center;
}

@media (min-width: 600px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-accept,
.btn-reject {
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.btn-accept {
    background: var(--primary);
    color: white;
}

.btn-accept:hover {
    background: var(--primary-hover);
}

.btn-reject {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #dfe6e9;
}

.btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}