/* 
   Theme Name: Sci-Fi Project News
   Style: Dark, Neon, Glassmorphism, Futuristic
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #00f0ff;
    /* Neon Cyan */
    --secondary-color: #0055ff;
    /* Deep Tech Blue */
    --bg-dark: #050a14;
    --bg-card: rgba(10, 20, 40, 0.7);
    --border-color: rgba(0, 240, 255, 0.3);
    --text-main: #ffffff;
    --text-muted: #8aa0b0;
    --glow-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 85, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        url('https://utils.tsk.tr/bg-tech.jpg');
    /* Fallback or texture */
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020408;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 0 20px;
    margin-bottom: 30px;
    position: relative;
}

.site-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(to bottom, #fff, #b4dfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    margin-bottom: 5px;
}

.site-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 8px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.site-subtitle::before,
.site-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.site-subtitle::before {
    left: -80px;
}

.site-subtitle::after {
    right: -80px;
}

/* Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

/* Common Card Styles */
.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 2px;
    /* For inner border effect */
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
    /* Corner acccents */
    background:
        linear-gradient(to right, var(--primary-color) 2px, transparent 2px) 0 0,
        linear-gradient(to bottom, var(--primary-color) 2px, transparent 2px) 0 0,
        linear-gradient(to left, var(--primary-color) 2px, transparent 2px) 100% 0,
        linear-gradient(to bottom, var(--primary-color) 2px, transparent 2px) 100% 0,
        linear-gradient(to right, var(--primary-color) 2px, transparent 2px) 0 100%,
        linear-gradient(to top, var(--primary-color) 2px, transparent 2px) 0 100%,
        linear-gradient(to left, var(--primary-color) 2px, transparent 2px) 100% 100%,
        linear-gradient(to top, var(--primary-color) 2px, transparent 2px) 100% 100%;
    background-size: 10px 10px;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.card-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.card-content {
    padding: 20px;
}

/* News Section */
.news-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-item {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.2);
}

.news-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    width: 100%;
    padding: 20px;
    color: #fff;
}

.news-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.news-snippet {
    font-size: 0.9rem;
    color: #ccc;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Social Buttons */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 100px;
}

.social-btn:hover {
    background: rgba(0, 85, 255, 0.2);
    box-shadow: 0 0 15px var(--primary-color);
    border-color: #fff;
}

.social-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block !important;
}

.social-label {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Media Section */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.media-box {
    min-height: 200px;
}

/* Stats Sidebar */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-left: 3px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-name {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.stat-value {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    }
}

.glow-effect {
    animation: pulse 3s infinite;
}

/* Responsive */
@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .news-container {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .site-title {
        font-size: 2.5rem;
    }

    .site-subtitle::before,
    .site-subtitle::after {
        width: 30px;
    }

    .site-subtitle::before {
        left: -40px;
    }

    .site-subtitle::after {
        right: -40px;
    }
}