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

:root {
    --primary-red: #DC2626;
    --primary-red-dark: #B91C1C;
    --primary-red-light: #EF4444;
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #DC2626;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: #B91C1C;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #DC2626 rgba(0, 0, 0, 0.3);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: gradientMove 20s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-10%, -10%) rotate(120deg); }
    66% { transform: translate(10%, 10%) rotate(240deg); }
}

.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.05), transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(255, 255, 255, 0.03), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.05), transparent),
        radial-gradient(1px 1px at 20px 40px, rgba(255, 255, 255, 0.03), transparent),
        radial-gradient(2px 2px at 90px 20px, rgba(255, 255, 255, 0.04), transparent);
    background-size: 200px 200px;
    animation: particlesMove 30s linear infinite;
}

@keyframes particlesMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(200px, 200px); }
}

/* Ultra Modern Header */
.ultra-modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.15);
}

.search-input {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 10px 16px;
    font-size: 0.95rem;
    width: 250px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.search-btn:hover {
    background: var(--primary-red);
    color: var(--white);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.logo-section {
    position: relative;
    display: flex;
    align-items: center;
}

.site-logo-ultra {
    max-width: 180px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.refresh-btn-ultra {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.refresh-btn-ultra:hover {
    background: var(--primary-red-dark);
}

.refresh-btn-ultra:active {
    transform: scale(0.98);
}

.btn-label {
    font-weight: 700;
    font-size: 1rem;
}

/* Main Content */
.ultra-modern-main {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
    min-height: calc(100vh - 200px);
}

/* Loading Ultra */
.loading-ultra {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
}

.loader-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: loaderSpin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring:nth-child(1) {
    animation-delay: -0.45s;
}

.loader-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: var(--primary-red-light);
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
}

.loader-ring:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: var(--primary-red-dark);
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    color: var(--gray-400);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Posts Masonry Grid */
.posts-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Post Card Ultra */
.post-card {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    aspect-ratio: 0.75;
    box-shadow: var(--shadow-xl);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.5);
    border-color: var(--primary-red);
}

.post-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-image {
    transform: scale(1.1);
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    cursor: grab;
    user-select: none;
    background: var(--black);
    align-items: center;
    pointer-events: none;
}

.carousel-container .carousel-nav,
.carousel-container .carousel-indicators,
.carousel-container .carousel-indicator {
    pointer-events: auto;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .carousel-slide img {
    transform: scale(1.1);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.post-card:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

.carousel-nav:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--primary-red);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--primary-red);
    width: 24px;
    border-radius: 8px;
    border-color: var(--primary-red);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Carousel Badge */
.carousel-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-badge::before {
    content: '📷';
    font-size: 0.9rem;
}

/* Error Ultra */
.error-ultra {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    min-height: 400px;
}

.error-content {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: var(--shadow-2xl);
}

.error-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: var(--primary-red);
    animation: errorPulse 2s ease-in-out infinite;
}

@keyframes errorPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.error-description {
    color: var(--gray-400);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-action-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: var(--white);
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.error-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

/* Ultra Modern Footer */
.ultra-modern-footer {
    position: relative;
    z-index: 1;
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright {
    color: var(--gray-400);
    font-size: 0.85rem;
    margin: 0;
}

.solidmedya-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.solidmedya-link:hover {
    color: var(--primary-red);
}

/* Floating Action Button Ultra */
.fab-ultra {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-ultra:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.5);
}

.fab-ultra:active {
    transform: scale(0.95);
}

.fab-ultra svg {
    width: 24px;
    height: 24px;
}

/* Notification */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 18px 28px;
    border-radius: 16px;
    color: var(--white);
    font-weight: 600;
    box-shadow: var(--shadow-2xl);
    z-index: 10000;
    transform: translateX(500px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: rgba(16, 185, 129, 0.9);
}

.notification.error {
    background: rgba(220, 38, 38, 0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .posts-masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .header-container {
        padding: 15px 25px;
    }
    
    .ultra-modern-main {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 15px;
        flex-wrap: wrap;
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .logo-section {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .site-logo-ultra {
        max-width: 200px;
        max-height: 70px;
        width: auto;
        height: auto;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 0;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .search-box {
        flex: 1;
        min-width: 200px;
        max-width: 100%;
    }
    
    .search-input {
        width: 100%;
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    .search-btn {
        padding: 10px 12px;
        flex-shrink: 0;
    }
    
    .refresh-btn-ultra {
        padding: 10px 18px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .ultra-modern-footer {
        padding: 15px 15px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .ultra-modern-main {
        padding: 25px 15px;
        min-height: calc(100vh - 150px);
    }
    
    .posts-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px 0;
    }
    
    /* Mobilde 2 sütunlu kart görünümü garantisi */
    .post-card {
        width: 100%;
        min-width: 0;
    }
    
    .post-card {
        border-radius: 16px;
    }
    
    .fab-ultra {
        display: flex;
        width: 60px;
        height: 60px;
        bottom: 25px;
        right: 25px;
    }
    
    .fab-ultra svg {
        width: 22px;
        height: 22px;
    }
    
    .loading-ultra {
        padding: 60px 20px;
    }
    
    .loader-container {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .loading-message {
        font-size: 1rem;
    }
    
    .error-ultra {
        padding: 50px 20px;
        min-height: 300px;
    }
    
    .error-content {
        padding: 35px 25px;
        max-width: 100%;
    }
    
    .error-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .error-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .error-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .error-action-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .notification {
        top: 20px;
        right: 15px;
        left: 15px;
        max-width: none;
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .carousel-nav {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        padding: 8px 12px;
        gap: 6px;
    }
    
    .carousel-indicator {
        width: 6px;
        height: 6px;
    }
    
    .carousel-indicator.active {
        width: 20px;
    }
    
    .carousel-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .site-logo-ultra {
        max-width: 120px;
        max-height: 45px;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .search-box {
        width: 100%;
        max-width: 100%;
    }
    
    .search-input {
        font-size: 0.85rem;
        padding: 9px 12px;
    }
    
    .refresh-btn-ultra {
        width: 100%;
        padding: 11px 16px;
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .ultra-modern-main {
        padding: 20px 10px;
        min-height: calc(100vh - 140px);
    }
    
    .posts-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px 0;
    }
    
    .post-card {
        border-radius: 12px;
        aspect-ratio: 0.8;
    }
    
    .fab-ultra {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .fab-ultra svg {
        width: 20px;
        height: 20px;
    }
    
    .ultra-modern-footer {
        padding: 12px 12px;
    }
    
    .footer-container {
        gap: 8px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
    
    .solidmedya-link {
        font-size: 0.8rem;
    }
    
    .loading-ultra {
        padding: 50px 15px;
    }
    
    .loader-container {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .loading-message {
        font-size: 0.9rem;
    }
    
    .error-ultra {
        padding: 40px 15px;
        min-height: 250px;
    }
    
    .error-content {
        padding: 30px 20px;
    }
    
    .error-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .error-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .error-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .error-action-btn {
        padding: 11px 24px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .notification {
        top: 15px;
        right: 10px;
        left: 10px;
        padding: 12px 16px;
        font-size: 0.85rem;
        border-radius: 12px;
    }
    
    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
        padding: 6px 10px;
        gap: 5px;
    }
    
    .carousel-indicator {
        width: 5px;
        height: 5px;
    }
    
    .carousel-indicator.active {
        width: 18px;
    }
    
    .carousel-badge {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .header-container {
        padding: 8px 10px;
    }
    
    .site-logo-ultra {
        max-width: 100px;
        max-height: 40px;
    }
    
    .ultra-modern-main {
        padding: 15px 8px;
    }
    
    .posts-masonry {
        gap: 8px;
    }
    
    .fab-ultra {
        width: 52px;
        height: 52px;
        bottom: 15px;
        right: 15px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
