/* ===================================
   BOMBA! Ötletláda - Frontend Styles
   =================================== */

/* Form Wrapper */
.bomba-otletlada-form-wrapper,
.bomba-otletlada-success-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Form Steps */
.bomba-form-step {
    display: none;
}

.bomba-form-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Header */
.bomba-form-header {
    margin-bottom: 30px;
}

.bomba-form-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.bomba-form-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Form Count */
.bomba-form-count {
    margin-top: 10px !important;
    font-size: 14px;
    color: #666;
}

.bomba-form-count strong {
    color: #ff6b00;
}

/* Form Fields */
.bomba-form-field {
    margin-bottom: 20px;
}

.bomba-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.bomba-form-field textarea,
.bomba-form-field input[type="text"],
.bomba-form-field input[type="email"],
.bomba-form-field input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.bomba-form-field textarea:focus,
.bomba-form-field input:focus {
    outline: none;
    border-color: #ff6b00;
}

.bomba-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Character Counter */
.bomba-char-counter {
    margin-top: 8px;
    text-align: right;
    font-size: 13px;
    color: #666;
    transition: color 0.3s ease;
}

.bomba-char-count {
    font-weight: 600;
}

/* Radio Options */
.bomba-radio-option {
    display: block;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bomba-radio-option:hover {
    border-color: #ff6b00;
    background: #fff8f3;
}

.bomba-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.bomba-radio-option input[type="radio"]:checked+.bomba-radio-label {
    color: #ff6b00;
}

.bomba-radio-option input[type="radio"]:checked~* {
    border-color: #ff6b00;
}

.bomba-radio-option:has(input:checked) {
    border-color: #ff6b00;
    background: #fff8f3;
}

.bomba-radio-label {
    display: block;
    padding-left: 30px;
    position: relative;
}

.bomba-radio-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.bomba-radio-option input[type="radio"]:checked+.bomba-radio-label::before {
    border-color: #ff6b00;
    background: #ff6b00;
}

.bomba-radio-option input[type="radio"]:checked+.bomba-radio-label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.bomba-radio-label strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.bomba-radio-label small {
    display: block;
    color: #666;
    font-size: 13px;
}

/* Personal Fields */
.bomba-personal-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    animation: fadeInUp 0.3s ease;
}

/* Form Actions */
.bomba-form-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Buttons */
.bomba-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.bomba-btn-primary {
    background: #ff6b00;
    color: white;
}

.bomba-btn-primary:hover {
    background: #e55f00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.bomba-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.bomba-btn-secondary:hover {
    background: #e0e0e0;
}

/* Messages */
.bomba-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bomba-message.bomba-error {
    background: #fff3f3;
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

.bomba-message.bomba-success {
    background: #f0f9ff;
    border-left: 4px solid #28a745;
    color: #28a745;
    text-align: center;
}

/* Success Message */
.bomba-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #28a745;
}

.bomba-message.bomba-success h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.bomba-message.bomba-success p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.bomba-success-actions {
    margin-top: 20px;
    text-align: center;
}

/* ===================================
   List Display Styles
   =================================== */

.bomba-otletlada-list-wrapper {
    max-width: 800px;
    margin: 40px auto;
}

.bomba-submissions-list {
    display: grid;
    gap: 20px;
}

.bomba-submission-item {
    padding: 24px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #ff6b00;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bomba-submission-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.bomba-submission-message {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
}

.bomba-submission-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #999;
}

.bomba-submission-date::before {
    content: '📅 ';
}

.bomba-no-submissions {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.bomba-no-submissions p {
    color: #666;
    font-size: 16px;
}

.bomba-submissions-count {
    margin-bottom: 20px;
    padding: 16px 24px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #ff6b00;
}

.bomba-submissions-count p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.bomba-submissions-count strong {
    color: #ff6b00;
    font-size: 20px;
}

/* Like Button */
.bomba-submission-actions {
    border-top: 1px solid #eee;
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
}

.bomba-like-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.bomba-like-btn:hover {
    background: #fdf0e6;
    border-color: #ffccaa;
}

.bomba-heart {
    font-size: 18px;
    color: #ccc;
    transition: color 0.3s ease;
}

.bomba-like-btn.liked {
    background: #fdf0e6;
    border-color: #ff6b00;
    color: #ff6b00;
}

.bomba-like-btn.liked .bomba-heart {
    color: #ff6b00;
}

.bomba-like-count {
    font-weight: 600;
}

/* Heart Animation */
@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.animate-heart .bomba-heart {
    animation: heartPulse 0.4s ease-in-out;
}

/* Pagination */
.bomba-pagination {
    margin-top: 30px;
    text-align: center;
}

.bomba-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.bomba-pagination .page-numbers:hover,
.bomba-pagination .page-numbers.current {
    background: #ff6b00;
    color: white;
    border-color: #ff6b00;
}

@media (max-width: 640px) {
    /* Fő tároló: ne legyen margója a széleken, hogy ne tolja ki a tartalmat */
    .bomba-otletlada-list-wrapper {
        margin: 20px 0 !important;
        padding: 0 10px !important; /* Itt adunk egy kis lélegzetvételt a szélétől */
        width: 100% !important;
        max-width: 100% !important;
    }

    /* A számláló doboz (14 ötlet érkezett eddig) */
    .bomba-submissions-count {
        margin: 0 10px 20px 10px !important; /* Alul távolság a listától */
    }

    /* A lista elemei közötti távolság */
    .bomba-submissions-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important; /* Ez kényszeríti ki a távolságot a dobozok között */
        padding: 0 !important;
    }

    /* Egyedi lista elemek */
    .bomba-submission-item {
        margin: 0 10px !important; /* Oldalsó margó, hogy ne érjen a kijelző széléhez */
        width: auto !important; /* Hagyjuk, hogy a margin és padding alakítsa */
        display: block !important;
    }

    /* Szöveg tördelése */
    .bomba-submission-message {
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 14px;
    }
}