/**
 * eLfilms.cz - Styly pro stránku Přidat inzerát
 *
 * @package    eLfilms
 * @subpackage Frontend
 * @file       css/pridat.css
 * @version    2.0 - oddělení CSS z pridat.php
 * @datum      Duben 2026
 * @author     eLfilms Team
 * @copyright  2009-2026 eLfilms.cz
 *
 * STYLUJE:
 * - Formulář pro přidání inzerátu (pridat.php)
 * - Features grid, consent sekce, anti-spam sekce
 * - Success/error zprávy formuláře
 *
 * POUŽÍVÁ:
 * - pridat.php
 *
 * NOTE:
 * - Responsive styly jsou v pridat-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;
}

/* ============================================
   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;
}

/* ============================================
   LAYOUT
   ============================================ */
.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 STRÁNKY
   ============================================ */
.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #EEB500;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.page-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);
}

/* ============================================
   SEO INTRO SEKCE
   ============================================ */
.seo-intro {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.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);
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    flex: 0 1 180px;
    min-width: 160px;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.feature-title {
    font-weight: 600;
    color: #EEB500;
    margin-bottom: 5px;
}

.feature-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* ============================================
   FORMULÁŘ
   ============================================ */
.form-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: left;
}

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

.form-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.required {
    color: #f87171;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-select::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    border-color: #EEB500;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(238, 181, 0, 0.3);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    padding-right: 50px;
}

.form-select option {
    background: #1e3a5f;
    color: white;
    padding: 10px;
}

.form-textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.char-counter {
    text-align: right;
    font-size: 14px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.char-counter.warning {
    color: #fbbf24;
}

.char-counter.danger {
    color: #f87171;
}

.info-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    line-height: 1.5;
}

/* ============================================
   GDPR CONSENT SEKCE
   ============================================ */
.consent-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.consent-section h3 {
    color: #EEB500;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #EEB500;
    margin-top: 2px;
    flex-shrink: 0;
}

.consent-text {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.consent-text a {
    color: #EEB500;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.consent-text a:hover {
    color: rgba(238, 181, 0, 0.8);
}

/* ============================================
   ANTI-SPAM SEKCE
   ============================================ */
.anti-spam {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.anti-spam h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.security-checks {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.security-check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

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

/* ============================================
   TLAČÍTKO ODESLAT
   ============================================ */
.submit-btn {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: none;
    border-radius: 16px;
    padding: 18px 40px;
    color: #1e3a5f;
    font-size: 20px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   LOADING
   ============================================ */
.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: white;
    font-size: 18px;
}

.loading.active {
    display: block;
}

/* ============================================
   SUCCESS ZPRÁVA
   ============================================ */
.success-message {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    margin-top: 20px;
    display: none;
    color: white;
}

.success-message.active {
    display: block;
}

.success-message h3 {
    margin-bottom: 25px;
    font-size: 32px;
    color: #EEB500;
    font-weight: 700;
}

.success-message p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.success-message .back-home-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;
}

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

/* ============================================
   ERROR ZPRÁVA (formulář)
   ============================================ */
.error-message {
    background: rgba(248, 113, 113, 0.2);
    border: 2px solid rgba(248, 113, 113, 0.4);
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
    display: none;
    color: white;
    font-size: 16px;
    text-align: center;
}

.error-message.active {
    display: block;
}

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

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