/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: linear-gradient(135deg, #1a2f59, #0d47a1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
    background: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    border: none;
    outline: none;
    white-space: nowrap;
}

.nav-link:hover, .nav-link:focus {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dropdown-toggle {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 8px 0;
    z-index: 1000;
    margin-top: 8px;
    list-style: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    border-radius: 8px;
    margin: 0 8px;
}

.dropdown-link:hover {
    background: #f7fafc;
    color: #1a2f59;
    transform: translateX(4px);
}

/* Photo Upload Styles */
.photo-upload-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.upload-section {
    margin-bottom: 20px;
}

.upload-dropzone {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: #4299e1;
    background: #ebf8ff;
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    font-size: 48px;
    opacity: 0.7;
}

.upload-content h4 {
    margin: 0;
    color: #2d3748;
    font-size: 18px;
}

.upload-content p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.upload-btn {
    margin-top: 8px;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.photo-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.photo-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.photo-remove-btn:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

.url-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.url-section h4 {
    margin: 0 0 12px 0;
    color: #2d3748;
    font-size: 16px;
}

.url-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.url-input-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.url-input-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(25, 47, 89, 0.9), rgba(13, 71, 161, 0.8)),
                url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: white;
    text-align: center;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main {
    min-height: calc(100vh - 140px);
}

/* New Post Form */
.new-post-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.new-post-form h2 {
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1a2f59, #0d47a1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-game {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    font-size: 14px;
    padding: 10px 20px;
}

.btn-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

/* Enhanced Photo Integration Styles */
.photo-source-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #1a2f59, #0d47a1);
    color: white;
    border-color: transparent;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.photo-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.photo-tab.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.help-text {
    font-size: 12px;
    color: #718096;
    margin-top: 8px;
    font-style: italic;
}

/* Image Preview */
#imagePreview, #googlePhotoPreview, #bannerImagePreview {
    margin-top: 10px;
    min-height: 50px;
}

#imagePreview img, #bannerImagePreview img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Banner Manager Modal */
.banner-manager-modal .modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.banner-manager-modal .modal-header {
    background: linear-gradient(135deg, #1a2f59, #0d47a1);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-manager-modal .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-manager-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.banner-manager-modal .modal-body {
    padding: 20px;
}

.banner-manager-modal h4 {
    color: #2d3748;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

.banner-manager-modal input[type="file"],
.banner-manager-modal input[type="text"],
.banner-manager-modal input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.banner-manager-modal ol {
    font-size: 14px;
    color: #4a5568;
    margin: 10px 0;
}

.banner-manager-modal ol li {
    margin: 5px 0;
}

/* Multiple photo preview improvements */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.photo-gallery .photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.photo-gallery .photo-item:hover {
    transform: scale(1.05);
}

.photo-gallery .photo-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.photo-gallery .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 107, 107, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-gallery .remove-btn:hover {
    background: #ff6b6b;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .photo-source-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn {
        text-align: center;
    }
    
    .banner-manager-modal .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}

/* Blog Posts */
.blog-posts {
    margin: 40px 0;
}

.blog-posts h2 {
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5rem;
}

.blog-post {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.post-header h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #718096;
    font-size: 0.9rem;
}

.post-content {
    color: #4a5568;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 15px;
}

.post-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Blog Post Photo Gallery */
.post-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .post-photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
}

.post-gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.post-gallery-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Google Photos Integration */
.post-google-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.google-photo-placeholder {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    transition: transform 0.3s ease;
}

.google-photo-placeholder:hover {
    transform: translateY(-2px);
}

.google-photo-placeholder p {
    margin: 0 0 10px 0;
    font-weight: bold;
    font-size: 16px;
}

.google-photo-placeholder a {
    color: white;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
}

.google-photo-placeholder a:hover {
    text-decoration: none;
}

/* Games Preview */
.games-preview {
    margin: 60px 0;
}

.games-preview h2 {
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5rem;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.game-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Search functionality */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.search-container input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-container input:focus {
    outline: none;
    border-color: #1a2f59;
    box-shadow: 0 0 0 3px rgba(26, 47, 89, 0.1);
}

.search-container button {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: #6b7280;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.search-container button:hover {
    background: #4b5563;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-source {
    background: #1a2f59;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

.no-posts {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px dashed #e2e8f0;
}

/* Drag and Drop Zone Styles */
.drag-drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 15px;
}

.drag-drop-zone:hover {
    border-color: #1a2f59;
    background: #f0f4ff;
}

.drag-drop-zone.dragover {
    border-color: #1a2f59;
    background: #e0f2fe;
    transform: scale(1.02);
}

.drag-drop-content {
    /* Remove pointer-events: none to allow clicking */
}

.drag-drop-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.drag-drop-zone p {
    margin: 5px 0;
    color: #4b5563;
}

.drag-drop-subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255,255,255,0.2);
}

.hamburger .bar {
    width: 24px;
    height: 3px;
    background: white;
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-logo-img {
        width: 28px;
        height: 28px;
    }
    
    .nav-logo {
        font-size: 16px;
        gap: 8px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1a2f59, #0d47a1);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
        display: none;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .dropdown-menu {
        position: static;
        display: block;
        opacity: 1;
        transform: none;
        background: rgba(255,255,255,0.1);
        margin: 8px 0 0 0;
        padding: 8px;
        border-radius: 8px;
    }
    
    .dropdown-link {
        color: rgba(255,255,255,0.9);
        margin: 0;
        padding: 12px 16px;
    }
    
    .dropdown-link:hover {
        background: rgba(255,255,255,0.2);
        color: white;
        transform: translateX(8px);
    }
    
    .hamburger {
        display: flex;
    }
    
    .photo-upload-container {
        padding: 16px;
    }
    
    .upload-dropzone {
        padding: 30px 15px;
    }
    
    .photo-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .url-input-group {
        flex-direction: column;
        gap: 8px;
    }
}

/* Blog Post Photo Styles */
.post-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.post-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.post-photo:hover {
    transform: scale(1.02);
}

.post-photos .post-photo:only-child {
    max-width: 400px;
    height: 250px;
    margin: 0 auto;
}

/* Delete button styles */
.delete-post {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.delete-post:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.1);
}

/* No posts message */
.no-posts {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin: 20px 0;
} 