@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@100..900&display=swap');
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --secondary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --card-bg: rgb(255, 255, 255,0.8);
    --text-primary: #2d3748;
    --text-secondary: #718096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-optical-sizing: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

.linktree-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.linktree-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 5vw 6vw;
    text-align: center;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border: 3px solid #764ba29d;
}

.linktree-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.linktree-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.news-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    border: 3px solid #764ba29d;
    display: grid;
    grid-template-columns: minmax(60px, 72px) 1fr;
    gap: 12px;
}

.news-header {
    display: contents;
}

.thumb {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.35);
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    text-align: left;
}

.meta .title {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    font-weight: 800;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta .desc {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    transition: transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.btn i {
    width: 18px;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-gradient);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #2d3748;
}

.btn-muted {
    background: linear-gradient(135deg, #8e9eab 0%, #eef2f3 100%);
    color: #2d3748;
}

.empty {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}
.title, 
.desc {
    direction: rtl;
    text-align: right;
}
/* Animated background */
.animated-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    animation: float 20s linear infinite;
}

.bg-circle:nth-child(1) {
    width: clamp(200px, 40vw, 320px);
    height: clamp(200px, 40vw, 320px);
    top: -140px;
    left: -140px;
    animation-delay: 0s;
}

.bg-circle:nth-child(2) {
    width: clamp(150px, 30vw, 220px);
    height: clamp(150px, 30vw, 220px);
    bottom: -110px;
    right: 8%;
    animation-delay: 5s;
}

.bg-circle:nth-child(3) {
    width: clamp(100px, 20vw, 160px);
    height: clamp(100px, 20vw, 160px);
    top: 45%;
    left: 70%;
    animation-delay: 10s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-18px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

.floating-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: floatParticle 9s linear infinite;
}

.particle:nth-child(odd) {
    width: 3px;
    height: 3px;
    opacity: 0.85;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }

    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }

    100% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.linktree-card {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .linktree-card {
        padding: 6vw 5vw;
    }

    .news-card {
        grid-template-columns: 60px 1fr;
        padding: 12px;
    }

    .thumb {
        width: 60px;
        height: 60px;
    }

    .actions {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 8px;
        font-size: clamp(0.75rem, 3vw, 0.85rem);
    }

    .linktree-logo {
        max-width: 90px;
    }
}

@media (max-width: 480px) {
    .linktree-card {
        padding: 8vw 4vw;
        border-radius: 20px;
    }

    .news-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .linktree-logo{
        width: 150px;
        height: auto;
        padding: 0;
    }

    .thumb {
        width: 80px;
        height: 80px;
        margin: 0 auto 8px;
    }

    .meta {
        text-align: center;
    }

    .actions {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px;
    }

    .linktree-title {
        font-size: clamp(1.5rem, 6vw, 1.8rem);
    }

    .linktree-subtitle {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: rgba(30, 30, 30, 0.95);
        --text-primary: #f7fafc;
        --text-secondary: #a0aec0;
    }

    .linktree-card {
        border-color: rgba(255, 255, 255, 0.1);
    }

    .news-card {
        background: rgba(50, 50, 50, 0.9);
    }
}