/* ===================================
   KHUÔN MẶT BẤT TỬ - COMPLETE STYLES
   =================================== */

/* === GENERAL === */
.kmbt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === HERO SECTION === */
.kmbt-form-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.kmbt-hero-section {
    background: linear-gradient(135deg, #2d1b69 0%, #1a0f3d 100%);
    padding: 80px 40px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.kmbt-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.kmbt-hero-badge {
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 8px 24px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.kmbt-hero-title {
    font-size: 52px;
    font-weight: 900;
    color: #ffd700;
    margin: 20px 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.kmbt-hero-subtitle {
    font-size: 18px;
    color: white;
    margin: 20px 0 40px 0;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.kmbt-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.kmbt-primary-btn,
.kmbt-secondary-btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.kmbt-primary-btn {
    background: #ffd700;
    color: #2d1b69;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.kmbt-primary-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.kmbt-secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.kmbt-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* === SEARCH BOX === */
.kmbt-search-box {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.kmbt-search-box input {
    flex: 1;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s;
}

.kmbt-search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.kmbt-search-box button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kmbt-search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* === GRID LAYOUT === */
.kmbt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* === MEMORIAL CARD === */
.kmbt-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.kmbt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.kmbt-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.kmbt-card-image.kmbt-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #ccc;
    background: linear-gradient(135deg, #f5f7fa 0%, #e3e8ee 100%);
}

.kmbt-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.kmbt-card:hover .kmbt-card-image img {
    transform: scale(1.05);
}

.kmbt-card-content {
    padding: 20px;
}

.kmbt-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

.kmbt-location {
    color: #888;
    font-size: 13px;
    margin: 8px 0;
}

.kmbt-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0 15px 0;
}

.kmbt-view-detail {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.kmbt-view-detail:hover {
    color: #0056b3;
}

.kmbt-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.kmbt-likes {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 600;
}

.kmbt-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
    grid-column: 1 / -1;
}

/* === FORM STYLES === */
.kmbt-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.kmbt-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.kmbt-form-title {
    color: #007bff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 30px 0;
}

.kmbt-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.kmbt-form-section:last-of-type {
    border-bottom: none;
}

.kmbt-section-title {
    color: #007bff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.kmbt-form-group {
    margin-bottom: 20px;
}

.kmbt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.kmbt-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 400;
    font-size: 14px;
}

.kmbt-form-group input,
.kmbt-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

.kmbt-form-group input::placeholder,
.kmbt-form-group textarea::placeholder {
    color: #999;
}

.kmbt-form-group input:focus,
.kmbt-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.kmbt-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* File Upload */
.kmbt-file-upload {
    position: relative;
}

.kmbt-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
}

.kmbt-file-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.kmbt-file-label:hover {
    border-color: #007bff;
}

.kmbt-file-text {
    color: #007bff;
    font-weight: 500;
}

.kmbt-file-info {
    color: #666;
    font-size: 14px;
}

.kmbt-file-note {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}

.kmbt-file-note input[type="radio"] {
    width: auto;
    margin: 0 5px 0 15px;
}

.kmbt-file-note input[type="radio"]:first-child {
    margin-left: 0;
}

/* Submit Button */
.kmbt-submit-btn {
    width: 100%;
    padding: 15px;
    background: #b8860b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kmbt-submit-btn:hover {
    background: #9a7209;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

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

.kmbt-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.kmbt-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.kmbt-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* === MODAL === */
.kmbt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.kmbt-modal.active {
    display: block;
}

.kmbt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.kmbt-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.kmbt-modal-close {
    position: sticky;
    top: 15px;
    right: 15px;
    float: right;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.2s;
}

.kmbt-modal-close:hover {
    color: #333;
}

.kmbt-modal-body {
    padding: 30px;
    clear: both;
}

/* Detail Page */
.kmbt-detail-title {
    color: #007bff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
}

.kmbt-detail-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.kmbt-detail-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kmbt-detail-info h2 {
    color: #007bff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.kmbt-info-box {
    background: #fff7e6;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.kmbt-info-box strong {
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.kmbt-info-box p {
    margin: 8px 0;
    line-height: 1.6;
    color: #555;
}

.kmbt-submitter-info {
    color: #666;
    font-size: 14px;
    margin: 15px 0;
}

.kmbt-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.kmbt-like-btn,
.kmbt-share-btn {
    padding: 12px 24px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
}

.kmbt-like-btn:hover,
.kmbt-share-btn:hover {
    background: #007bff;
    color: white;
}

/* Comments */
.kmbt-comments-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.kmbt-comments-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.kmbt-comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.kmbt-comment {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.kmbt-comment strong {
    color: #007bff;
    display: block;
    margin-bottom: 5px;
}

.kmbt-comment p {
    margin: 0 0 5px 0;
    color: #555;
}

.kmbt-comment small {
    color: #999;
    font-size: 12px;
}

.kmbt-no-comments {
    text-align: center;
    color: #999;
    padding: 20px;
}

.kmbt-comment-form {
    display: flex;
    gap: 10px;
}

.kmbt-comment-form textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
}

.kmbt-comment-form button {
    padding: 12px 30px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.kmbt-comment-form button:hover {
    background: #0056b3;
}

/* === ADVANCED SEARCH === */
.kmbt-advanced-search {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.kmbt-advanced-search h2 {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 28px;
    text-align: center;
}

.kmbt-search-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.kmbt-search-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.kmbt-search-submit,
.kmbt-search-reset {
    padding: 12px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.kmbt-search-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.kmbt-search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.kmbt-search-reset {
    background: #e0e0e0;
    color: #333;
}

.kmbt-search-reset:hover {
    background: #d0d0d0;
}

.kmbt-search-results {
    margin-top: 40px;
}

.kmbt-results-info {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    color: #666;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .kmbt-hero-section {
        padding: 60px 20px;
    }
    
    .kmbt-hero-title {
        font-size: 36px;
    }
    
    .kmbt-hero-subtitle {
        font-size: 16px;
    }
    
    .kmbt-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .kmbt-primary-btn,
    .kmbt-secondary-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .kmbt-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .kmbt-search-box {
        flex-direction: column;
    }
    
    .kmbt-search-box input {
        max-width: 100%;
    }
    
    .kmbt-form {
        padding: 25px;
    }
    
    .kmbt-form-row {
        grid-template-columns: 1fr;
    }
    
    .kmbt-search-grid {
        grid-template-columns: 1fr;
    }
    
    .kmbt-search-actions {
        flex-direction: column;
    }
    
    .kmbt-search-submit,
    .kmbt-search-reset {
        width: 100%;
    }
    
    .kmbt-detail-content {
        grid-template-columns: 1fr;
    }
    
    .kmbt-actions {
        flex-direction: column;
    }
    
    .kmbt-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .kmbt-modal-body {
        padding: 20px;
    }
    
    .kmbt-comment-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .kmbt-grid {
        grid-template-columns: 1fr;
    }
    
    .kmbt-card-image {
        height: 200px;
    }
    
    .kmbt-form-container,
    .kmbt-advanced-search {
        padding: 15px;
    }
    
    .kmbt-hero-title {
        font-size: 28px;
    }
}