/**
 * Public Styles untuk Plugin Informasi Berita Hoax
 */

/* General Public Styles */
.hoax-info-public {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.hoax-header .card-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    padding: 2rem 1.5rem;
    text-align: center;
}

.hoax-header h4 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hoax-header p {
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

/* Search Form Styles */
.hoax-search-form {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.hoax-search-form .form-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hoax-search-form .form-control {
    border: 2px solid #dee2e6;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hoax-search-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-2px);
}

.hoax-search-form .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hoax-search-form .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.hoax-search-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.hoax-search-form .btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.hoax-search-form .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
}

/* Statistics Styles */
.hoax-stats .alert {
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.hoax-stats .alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hoax-stats .alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(17, 122, 139, 0.05));
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

.hoax-stats .alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(211, 158, 0, 0.05));
    color: #856404;
    border-left: 5px solid #ffc107;
}

/* Table Container */
.hoax-table-container {
    margin-bottom: 2rem;
}

.hoax-table-container .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.hoax-table-container .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Table Styles */
.hoax-table {
    margin: 0;
    font-size: 0.95rem;
}

.hoax-table thead th {
    background: linear-gradient(135deg, #343a40, #23272b);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1.25rem 1rem;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.hoax-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hoax-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(200, 35, 51, 0.02));
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hoax-table td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border: none;
}

.hoax-table .hoax-content {
    max-width: 400px;
}

.hoax-table .hoax-content .fw-bold {
    color: #dc3545;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Badge Styles */
.hoax-table .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hoax-table .badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
}

/* Button Styles */
.hoax-table .btn {
    border-radius: 20px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.8rem;
}

.hoax-table .btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
}

.hoax-table .btn-outline-primary:hover {
    background: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.hoax-table .btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.hoax-table .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Table Footer */
.hoax-table-container .card-footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    padding: 1rem 1.5rem;
}

.hoax-table-container .card-footer small {
    color: #6c757d;
    font-weight: 500;
}

/* Pagination Styles */
.hoax-info-public .pagination {
    justify-content: center;
    margin: 2rem 0;
}

.hoax-info-public .pagination .page-link {
    border: none;
    border-radius: 50px;
    margin: 0 3px;
    color: #dc3545;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hoax-info-public .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.hoax-info-public .pagination .page-link:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(200, 35, 51, 0.05));
    color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Empty State Styles */
.hoax-info-public .card-body.text-center {
    padding: 4rem 2rem;
}

.hoax-info-public .card-body.text-center i.material-icons {
    opacity: 0.6;
    margin-bottom: 1rem;
}

.hoax-info-public .card-body.text-center h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.hoax-info-public .card-body.text-center p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer Info Styles */
.hoax-footer .card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.hoax-footer .card-body {
    padding: 2rem;
}

.hoax-footer h6 {
    color: #495057;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hoax-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hoax-footer ul li {
    padding: 0.25rem 0;
    color: #6c757d;
    font-weight: 500;
}

.hoax-footer ul li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

.hoax-footer .alert {
    border: none;
    border-radius: 10px;
    padding: 1rem;
    margin: 0;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(211, 158, 0, 0.05));
    border-left: 4px solid #ffc107;
}

/* Style Variations */

/* Modern Style */
.hoax-style-modern .card {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 20px;
}

.hoax-style-modern .hoax-table thead th {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Classic Style */
.hoax-style-classic .card {
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 10px;
}

.hoax-style-classic .hoax-table thead th {
    background: #343a40;
    color: white;
}

/* Minimal Style */
.hoax-style-minimal .card {
    border: 1px solid #e9ecef;
    box-shadow: none;
    border-radius: 8px;
}

.hoax-style-minimal .hoax-table thead th {
    background: #f8f9fa;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.hoax-style-minimal .hoax-table tbody tr:hover {
    background: #f8f9fa;
}

/* Colorful Style */
.hoax-style-colorful .hoax-table tbody tr:nth-child(odd) {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
}

.hoax-style-colorful .hoax-table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.1), rgba(13, 202, 240, 0.05));
}

.hoax-style-colorful .hoax-table thead th {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

/* Statistics Shortcode Styles */
.hoax-info-stats .card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.hoax-info-stats .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hoax-info-stats .card.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

.hoax-info-stats .card.bg-warning {
    background: linear-gradient(135deg, #ffc107, #d39e00) !important;
}

.hoax-info-stats .card.bg-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b) !important;
}

.hoax-info-stats .card-body {
    padding: 2rem;
}

.hoax-info-stats h3 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Latest Hoax Shortcode Styles */
.hoax-info-latest .list-group-item {
    border: none;
    border-radius: 15px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.hoax-info-latest .list-group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hoax-info-latest h6 {
    color: #dc3545;
    font-weight: 600;
    line-height: 1.4;
}

.hoax-info-latest .btn {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hoax-info-public {
        padding: 0 10px;
    }
    
    .hoax-header h4 {
        font-size: 1.5rem;
    }
    
    .hoax-header p {
        font-size: 1rem;
    }
    
    .hoax-search-form {
        padding: 1rem;
    }
    
    .hoax-table {
        font-size: 0.85rem;
    }
    
    .hoax-table .hoax-content {
        max-width: 200px;
    }
    
    .hoax-table .btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hoax-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .hoax-footer .card-body {
        padding: 1.5rem;
    }
    
    .hoax-info-stats h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hoax-table thead th {
        font-size: 0.75rem;
        padding: 1rem 0.5rem;
    }
    
    .hoax-table .hoax-content {
        max-width: 150px;
    }
    
    .hoax-search-form .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .hoax-search-form,
    .pagination,
    .hoax-footer {
        display: none !important;
    }
    
    .hoax-info-public {
        color: black !important;
        background: white !important;
    }
    
    .hoax-table thead th {
        background: #f8f9fa !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
.hoax-info-public ::-webkit-scrollbar {
    width: 8px;
}

.hoax-info-public ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.hoax-info-public ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 10px;
}

.hoax-info-public ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
}
