/* CSS Variables */
:root {
    --primary: #3498db;
    --gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

[data-theme="default"] {
    --primary: #3498db;
    --gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

[data-theme="crypto"] {
    --primary: #F7931A;
    --gradient: linear-gradient(135deg, #F7931A 0%, #FF6B35 100%);
}

[data-theme="poker"] {
    --primary: #e74c3c;
    --gradient: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

[data-theme="sports"] {
    --primary: #27ae60;
    --gradient: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .admin-panel {
        width: 100%;
        right: -100%;
    }

    .casino-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .casino-logo {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100px;
        height: 70px;
    }

    .card-content {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .container {
        padding: 0 15px;
    }

    .intro-section,
    .author-section,
    .content-section {
        padding: 15px;
    }

    .cards-container {
        padding: 10px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .casino-card {
        padding: 15px;
    }

    .cards-container {
        padding: 5px;
    }

    .intro-section,
    .author-section,
    .content-section {
        padding: 10px;
    }

    .admin-content {
        padding: 15px;
    }

    .edit-modal-content {
        padding: 20px;
        width: 95%;
    }
}

/* Modal Styles */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
}

.edit-modal.show {
    display: flex;
}

.edit-modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.edit-modal h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
}

.edit-modal textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    margin-bottom: 20px;
}

.edit-modal input,
.edit-modal select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 15px;
}

.edit-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.edit-modal-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.edit-modal-button.primary {
    background: var(--primary);
    color: white;
}

.edit-modal-button.secondary {
    background: #6c757d;
    color: white;
}

.edit-modal-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Content Styles */
.additional-content {
    margin: 0;
}

.content-section {
    background: white;
    padding: 20px;
    margin: 0;
    position: relative;
}

.content-section:hover .delete-btn,
.content-section:hover .add-btn {
    opacity: 1;
}

.content-section h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-section h3 {
    color: #333;
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.content-section h4 {
    color: #333;
    font-size: 1.2rem;
    margin: 20px 0 12px 0;
    font-weight: 600;
}

.content-section h5 {
    color: #333;
    font-size: 1.1rem;
    margin: 18px 0 10px 0;
    font-weight: 600;
}

.content-section h6 {
    color: #333;
    font-size: 1rem;
    margin: 15px 0 8px 0;
    font-weight: 600;
}

.content-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 16px;
}

.content-section ul,
.content-section ol {
    margin: 15px 0;
    padding-left: 25px;
    color: #555;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-table th {
    background: var(--primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.content-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.content-table tr:last-child td {
    border-bottom: none;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.image-container {
    text-align: center;
    margin: 20px 0;
}

.image-caption {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.content-section-wrapper {
  position: relative;
  margin: 20px 0;
}

.hover-add-buttons {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  height: 100%;
  pointer-events: none;
}

.add-btn-top,
.add-btn-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.add-btn-top:hover,
.add-btn-bottom:hover {
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
}

.add-btn-top { top: -14px; }
.add-btn-bottom { bottom: -14px; }

/* Casino Cards Styles */
.casinos-section {
    background: white;
    overflow: hidden;
}

.section-header {
    background: var(--primary);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
}

.cards-container {
    padding: 15px;
}

.casino-card {
    display: flex;
    align-items: center;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.casino-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.casino-card:hover .delete-btn {
    opacity: 1;
}

.casino-logo {
    width: 120px;
    height: 80px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
}

.casino-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.casino-logo-placeholder {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.2;
}

.card-content {
    flex: 1;
    margin-right: 25px;
    min-width: 0;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-bonus {
    background: #e8f5e8;
    color: #2d5016;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    display: inline-block;
}

.card-description {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tag {
    background: #f0f0f0;
    color: #555;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.action-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: #218838;
    transform: translateY(-1px);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.page-header {
    background: var(--gradient);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.9;
    line-height: 1.4;
}

/* Breadcrumbs */
.breadcrumbs {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

/* Intro Section */
.intro-section {
    background: white;
    padding: 20px;
}

/* Author Section */
.author-section {
    background: white;
    padding: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.author-description {
    color: #555;
    line-height: 1.6;
}

/* Editable Elements */
.editable {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 20px;
}

.editable:hover {
    outline: 2px dashed var(--primary);
    outline-offset: 3px;
}

.edit-label {
    position: absolute;
    top: -28px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 100;
    font-weight: 500;
}

.editable:hover .edit-label {
    opacity: 1;
}

/* Admin Panel Styles */

/* Breadcrumb Management Styles */
.breadcrumb-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
}

.breadcrumb-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-inputs input {
    flex: 1;
    min-width: 120px;
}

.breadcrumb-inputs .admin-button {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 12px;
}
.admin-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.admin-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.admin-panel.open {
    right: 0;
}

.admin-content {
    padding: 20px;
}

.admin-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.admin-section h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
}

.admin-input,
.admin-textarea,
.admin-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    font-family: inherit;
}

.admin-textarea {
    min-height: 80px;
    resize: vertical;
}

.admin-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.admin-button.danger {
    background: #e74c3c;
}

.admin-button.success {
    background: #27ae60;
}

.admin-button.secondary {
    background: #6c757d;
}

.file-input {
    display: none;
}

.file-drop-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.file-drop-zone:hover {
    border-color: var(--primary);
    background: rgba(52, 152, 219, 0.05);
}

.file-drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(52, 152, 219, 0.1);
}

.image-preview,
.author-avatar-preview {
    max-width: 80px;
    max-height: 60px;
    border-radius: 4px;
    margin: 5px;
    border: 1px solid #ddd;
}

.author-avatar-preview {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-btn {
    position: absolute;
    top: 10px;
    right: 40px;
    background: #27ae60;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}