/* Tiny.ee modern redesign - based on LinkSnap-style mock */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #14b8a6;
    --bg-main: #0a0a0f;
    --bg-card: #16161d;
    --bg-input: #1e1e28;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2d2d3a;
    --glow: rgba(99, 102, 241, 0.3);
}

.tiny-modern * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tiny-modern {
    font-family: 'Spline Sans', 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated background gradient */
.tiny-modern .bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(236, 72, 153, 0.1), transparent),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(20, 184, 166, 0.1), transparent);
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.tiny-modern .grain {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

.tiny-modern .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header / Nav */
.tiny-modern header {
    padding: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: slideDown 0.8s ease;
}

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

.tiny-modern .logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
}

.tiny-modern .logo:hover {
    opacity: 0.9;
}

.tiny-modern .logo img {
    -webkit-text-fill-color: initial;
    vertical-align: middle;
    max-height: 3.25rem;
    width: auto;
}

.tiny-modern .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    list-style: none;
}

.tiny-modern .nav-links li {
    list-style: none;
}

.tiny-modern .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.tiny-modern .nav-links a:hover {
    color: var(--primary);
}

.tiny-modern .nav-links .social a {
    display: inline-block;
    opacity: 0.8;
}

.tiny-modern .nav-links .social a:hover {
    opacity: 1;
}

.tiny-modern .nav-links .social img {
    height: 22px;
    width: auto;
    vertical-align: middle;
}

/* Hero */
.tiny-modern .hero {
    padding: 3rem 0 4rem;
    text-align: center;
    animation: fadeInUp 1s ease 0.2s both;
}

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

.tiny-modern .hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.tiny-modern .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientFlow 4s linear infinite;
}

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

.tiny-modern .hero .tagline {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 0.5rem;
    line-height: 1.6;
}

.tiny-modern .hero .news-link {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.tiny-modern .hero .news-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.tiny-modern .hero .news-link a:hover {
    text-decoration: underline;
}

/* Shortener card */
.tiny-modern .shortener-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: fadeInUp 1s ease 0.4s both;
    position: relative;
    overflow: hidden;
}

.tiny-modern .shortener-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.tiny-modern .form-group {
    margin-bottom: 1.25rem;
}

.tiny-modern .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.tiny-modern .url-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.tiny-modern .url-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--glow);
}

.tiny-modern .url-input::placeholder {
    color: var(--text-muted);
}

.tiny-modern .input-prefix-group {
    display: flex;
    align-items: stretch;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tiny-modern .input-prefix-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--glow);
}

.tiny-modern .input-prefix {
    padding: 1rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
    border-right: 1px solid var(--border);
}

.tiny-modern .input-prefix-group input {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.tiny-modern .input-prefix-group input::placeholder {
    color: var(--text-muted);
}

.tiny-modern .shorten-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    margin-top: 0.5rem;
}

.tiny-modern .shorten-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tiny-modern .shorten-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.tiny-modern .shorten-btn:hover::before {
    left: 100%;
}

.tiny-modern .shorten-btn:active {
    transform: translateY(0);
}

.tiny-modern .copy-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tiny-modern .copy-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.tiny-modern .copy-btn.copied {
    background: var(--accent);
    border-color: var(--accent);
}

.tiny-modern .cf-turnstile {
    margin: 0.75rem 0;
}

/* Stats row */
.tiny-modern .stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease 0.5s both;
}

.tiny-modern .stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tiny-modern .stats-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.tiny-modern .stats-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.tiny-modern .stats-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

/* Features */
.tiny-modern .features {
    padding: 4rem 0;
    animation: fadeInUp 1s ease 0.6s both;
}

.tiny-modern .features h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.tiny-modern .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* News: one pod per article, stacked (latest at top) */
.tiny-modern .news-list {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}
.tiny-modern .news-list .feature-card {
    padding: 2rem;
}
.tiny-modern .news-list .feature-card h3 {
    font-size: 1.25rem;
}

.tiny-modern .feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.tiny-modern .feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.tiny-modern .feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.tiny-modern .feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tiny-modern .feature-card p {
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.9rem;
}

.tiny-modern .feature-card a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.tiny-modern .feature-card a:hover {
    text-decoration: underline;
}

/* Inner page content card */
.tiny-modern .page-content {
    padding: 2rem 0 4rem;
    min-height: 50vh;
}

.tiny-modern .content-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
}

.tiny-modern .content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.tiny-modern .content-card h2,
.tiny-modern .content-card .content-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    text-align: center;
}

.tiny-modern .content-card .content-body {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.tiny-modern .content-card .content-body h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
}

.tiny-modern .content-card .content-body p {
    margin-bottom: 0.75rem;
}

.tiny-modern .content-card .content-body a {
    color: var(--primary);
    text-decoration: none;
}

.tiny-modern .content-card .content-body a:hover {
    text-decoration: underline;
}

.tiny-modern .content-card .content-body strong {
    color: var(--text-primary);
}

.tiny-modern .content-card.content-card-scroll {
    max-height: 70vh;
    overflow-y: auto;
}

/* Tables inside content (e.g. statics) */
.tiny-modern .content-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.tiny-modern .content-card table th,
.tiny-modern .content-card table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.tiny-modern .content-card table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tiny-modern .content-card table td a {
    color: var(--primary);
    text-decoration: none;
}
.tiny-modern .content-card table td a:hover {
    text-decoration: underline;
}
.tiny-modern .content-card .nav-tabs {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.tiny-modern .content-card .nav-tabs li { list-style: none; }
.tiny-modern .content-card .nav-tabs a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}
.tiny-modern .content-card .nav-tabs a:hover { color: var(--primary); }
.tiny-modern .content-card .nav-tabs li.active a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tiny-modern .content-card .tab-content .tab-pane { display: none; }
.tiny-modern .content-card .tab-content .tab-pane.active { display: block; }
.tiny-modern .content-card .table-responsive { overflow-x: auto; }

/* Alert / message card */
.tiny-modern .message-card {
    max-width: 560px;
    margin: 2rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.tiny-modern .message-card.message-success .content-card-title,
.tiny-modern .message-card.message-success h2 { color: var(--accent); }
.tiny-modern .message-card.message-danger .content-card-title,
.tiny-modern .message-card.message-danger h2 { color: #f87171; }
.tiny-modern .message-card.message-danger { border-color: rgba(248, 113, 113, 0.3); }

/* Footer */
.tiny-modern footer {
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    font-size: 0.9rem;
}

.tiny-modern footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.tiny-modern footer a:hover {
    color: var(--primary);
}

/* Mobile */
@media (max-width: 768px) {
    .tiny-modern .hero {
        padding: 2rem 0 3rem;
    }

    .tiny-modern .shortener-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .tiny-modern .features {
        padding: 3rem 0;
    }

    .tiny-modern .nav-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tiny-modern .container {
        padding: 0 1rem;
    }

    .tiny-modern header {
        flex-direction: column;
        padding: 1.25rem 0;
    }

    .tiny-modern .shortener-card {
        padding: 1.25rem;
    }

    .tiny-modern .input-prefix-group {
        flex-direction: column;
        align-items: stretch;
    }

    .tiny-modern .input-prefix {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}
