/* ===================================
   FULL SALSING - Retro Superpop Style
   Tech Gossip in 8-Bit Mode
   =================================== */

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

:root {
    --primary-pink: #FFB6D9;
    --hot-pink: #FFC0CB;
    --light-pink: #FFE4E1;
    --neon-yellow: #FFFF00;
    --neon-blue: #00FFFF;
    --neon-purple: #FF00FF;
    --neon-green: #00FF00;
    --dark-bg: #FFF0F5;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --retro-font: 'Arial', 'Courier New', monospace;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: var(--retro-font);
    overflow-x: hidden;
    line-height: 1.4;
}

/* ===== Background 8-bit Computer ===== */
.background-computer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-repeat: repeat;
    background-attachment: fixed;
    opacity: 0.6;
    pointer-events: none;
    z-index: -2;
}

/* Add retro scan lines effect */
.background-computer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: -1;
}

/* ===== Page Wrapper ===== */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== Header ===== */
.header {
    text-align: center;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.header-banner {
    width: 35%;
    height: auto;
    max-width: 600px;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}

/* ===== Carousel Subtitle ===== */
.carousel-container {
    text-align: center;
    width: 60%;
    overflow: hidden;
    margin: 0 auto 40px auto;
    position: relative;
}

.carousel-track {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.carousel-item {
    padding: 15px 60px;
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(
        90deg,
        #FF1493,
        #FFD700,
        #00CED1,
        #FF69B4,
        #7B68EE,
        #FF1493
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    animation: carouselFade 4s ease-in-out, gradientShift 3s linear infinite;
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.5),
                 0 0 40px rgba(255, 215, 0, 0.3),
                 0 0 60px rgba(0, 206, 209, 0.3);
}

@keyframes carouselFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

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

/* ===== Content Grid ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

#blocks-container {
    display: contents;
}

/* ===== News Blocks ===== */
.news-block {
    background: rgba(255, 182, 217, 0.75);
    border: 2px solid rgba(255, 105, 180, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.news-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.5);
}

/* Grid sizing */
.news-block.small {
    grid-column: span 1;
    grid-row: span 1;
}

.news-block.medium {
    grid-column: span 1;
    grid-row: span 1;
}

.news-block.large {
    grid-column: span 2;
    grid-row: span 1;
}

@media (max-width: 768px) {
    .news-block.medium,
    .news-block.large {
        grid-column: span 1;
    }
}

.news-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.block-category {
    display: inline-block;
    background: rgba(255, 105, 180, 0.7);
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 2px 6px rgba(255, 105, 180, 0.2);
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.block-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.2);
}

.block-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    line-height: 1.2;
}

.block-content {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
    text-shadow: 0.5px 0.5px 0 rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
}

.block-link {
    display: inline-block;
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid var(--primary-pink);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.block-link:hover {
    background: var(--primary-pink);
    color: white;
}

.block-delete {
    display: none;
}

.news-block:hover .block-delete {
    display: none;
}

.block-delete:hover {
    display: none;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 182, 217, 0.5);
    border-top: 2px solid rgba(255, 105, 180, 0.5);
    color: var(--text-dark);
    font-weight: bold;
    text-transform: uppercase;
}

/* ===== Twitter Widget Section ===== */
.twitter-widget-section {
    margin: 40px auto;
    padding: 0 20px;
    max-width: 1400px;
}

.twitter-widget-container {
    background: rgba(255, 240, 245, 0.8);
    border: 2px solid rgba(255, 105, 180, 0.6);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
}

.twitter-widget-container h2 {
    color: #E91E8C;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.twitter-widget-container p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.twitter-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.8), rgba(255, 105, 180, 0.8));
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid rgba(233, 30, 140, 0.6);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.twitter-button:hover {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.9), rgba(255, 105, 180, 0.9));
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.4);
    transform: translateY(-2px);
}

.twitter-embed {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.twitter-timeline {
    border-radius: 8px;
    overflow: hidden;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .carousel-item {
        padding: 10px 30px;
        font-size: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #FFF0F5;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 105, 180, 0.6);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 105, 180, 0.8);
}

/* ===== Link Button Styling ===== */
.block-link-button {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 192, 203, 0.8);
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
    z-index: 10;
}

.block-link-button:hover {
    background: rgba(255, 105, 180, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.5);
}

.link-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
