/**
 * eLfilms.cz - Styly pro stránku kamaradka.php
 *
 * @package    eLfilms
 * @subpackage Frontend
 * @file       css/kamaradka.css
 * @version    2.0 - oddělení CSS z kamaradka.php
 * @datum      Duben 2026
 * @author     eLfilms Team
 * @copyright  2009-2026 eLfilms.cz
 *
 * STYLUJE:
 * - Stránka kategorie Vážné vztahy (kamaradka.php)
 * - Layout, karty inzerátů, modal, paginace, SEO sekce
 *
 * POUŽÍVÁ:
 * - kamaradka.php
 *
 * DESIGN:
 * - Barvy: tmavě modrá (#1e3a5f, #2c5282), zlatá (#EEB500)
 * - Max šířka obsahu: 800px
 *
 * NOTE:
 * - Responsive styly jsou v vazne-responsive.css
 */

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

/* ============================================
   BODY
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #3b82c4 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    position: relative;
    padding-top: 64px;
}

body::before {
    display: none;
}

/* ============================================
   LAYOUT - CONTAINER A WRAPPER
   ============================================ */
.container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 94px 40px 40px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   TLAČÍTKO ZPĚT
   ============================================ */
.back-btn {
    position: fixed;
    top: 74px;
    left: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 200;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   HLAVIČKA KATEGORIE
   ============================================ */
.category-header {
    text-align: center;
    margin-bottom: 60px;
}

.category-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    color: #EEB500;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.category-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ZPRÁVY - ÚSPĚCH / CHYBA
   ============================================ */
.success-message {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin: 20px auto 40px auto;
    max-width: 600px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

.success-message .sub-text {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.9;
}

.error-message-custom {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin: 20px auto 40px auto;
    max-width: 600px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

.error-message-custom .sub-text {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.9;
}

/* ============================================
   SEO INTRO SEKCE
   ============================================ */
.seo-intro {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.seo-intro h2 {
    color: #EEB500;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.seo-intro p {
    line-height: 1.6;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   STATISTIKY
   ============================================ */
.stats-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.stats-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #f87171;
    display: block;
}

.stats-label {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* ============================================
   TLAČÍTKO PŘIDAT INZERÁT
   ============================================ */
.add-btn {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    color: #1e3a5f;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.add-btn:hover {
    background: linear-gradient(145deg, #f8f8f8, #e0e0e0);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
}

/* ============================================
   KONTEJNER INZERÁTŮ
   ============================================ */
.ads-container {
    margin-bottom: 60px;
}

.ads-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   KARTA INZERÁTU
   ============================================ */
.ad-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.ad-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 32px;
}

.ad-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 600;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: fit-content;
    max-width: 40%;
    overflow: hidden;
}

.ad-location {
    font-size: 14px;
    color: white;
    background: linear-gradient(145deg, #f87171, #ef4444);
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 600;
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: right;
    min-width: fit-content;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    max-height: none;
    overflow: visible;
}

.ad-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reply-btn {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    color: #1e3a5f;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reply-btn:hover {
    background: linear-gradient(145deg, #f8f8f8, #e0e0e0);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

/* ============================================
   PRÁZDNÝ STAV - ŽÁDNÉ INZERÁTY
   ============================================ */
.no-ads {
    text-align: center;
    padding: 80px 40px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-ads h3 {
    color: #EEB500;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
}

.no-ads p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 18px;
}

.no-ads .add-first-btn {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    color: #1e3a5f;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.no-ads .add-first-btn:hover {
    background: linear-gradient(145deg, #f8f8f8, #e0e0e0);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
}

/* ============================================
   CHYBOVÁ ZPRÁVA (DB)
   ============================================ */
.error-message {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.error-message h3 {
    color: #EEB500;
    margin-bottom: 15px;
    font-size: 24px;
}

.error-message p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* ============================================
   PAGINACE
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0;
    gap: 15px;
}

.page-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.page-btn.active {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #1e3a5f;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   SEO DODATEČNÝ OBSAH
   ============================================ */
.seo-additional-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin: 40px auto;
    text-align: left;
    max-width: 800px;
}

.seo-additional-content h2 {
    color: #EEB500;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.seo-additional-content h3 {
    color: #EEB500;
    margin-bottom: 15px;
    font-size: 18px;
}

.seo-additional-content ul {
    margin-left: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.seo-additional-content .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.seo-additional-content .highlight-box {
    margin-top: 25px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.seo-additional-content .highlight-box p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
}

.seo-additional-content .highlight-box p strong {
    color: #EEB500;
    font-size: 1.1em;
}

/* ============================================
   MODAL PRO ODPOVĚĎ
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    color: #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e3a5f;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82c4;
    box-shadow: 0 0 0 3px rgba(59, 130, 196, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-cancel {
    background: #e2e8f0;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 600;
    font-size: 16px;
}

.btn-cancel:hover {
    background: #cbd5e1;
}

.btn-send {
    background: linear-gradient(145deg, #3b82c4, #2563eb);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-send:hover {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-send:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   ANTI-SPAM HONEYPOT
   ============================================ */
.honeypot {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

/* ============================================
   SKIP TO CONTENT (ACCESSIBILITY)
   ============================================ */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    background: #EEB500;
    color: #0b334f;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

.skip-to-content:focus {
    left: 10px;
    top: 10px;
}

/* ============================================
   SEO SKRYTÝ OBSAH
   ============================================ */
.seo-content {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================
   ANIMACE
   ============================================ */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
