/**
 * Reeni Theme Custom CSS
 *
 * @package Reeni
 * @version 1.0.0
 */

/* ====================
   Preloader
==================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 77, 77, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================
   Logo Styles
==================== */
.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

/* ====================
   Mobile Menu
==================== */
.menu-open {
    overflow: hidden;
}

.main-nav.active {
    right: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ====================
   Service Icon
==================== */
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

/* ====================
   Form Messages
==================== */
.form-message {
    padding: 15px 20px;
    border-radius: var(--radius);
    font-weight: 500;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* ====================
   Pagination
==================== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination ul {
    display: flex;
    gap: 10px;
    list-style: none;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border-radius: var(--radius);
    color: var(--text-white);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
}

/* ====================
   No Results
==================== */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results h2 {
    margin-bottom: 20px;
}

.no-results p {
    margin-bottom: 30px;
}

/* ====================
   Search Form
==================== */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text-white);
}

.search-form button {
    padding: 15px 25px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

/* ====================
   Widget Styles
==================== */
.widget {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-gray);
    transition: var(--transition);
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* ====================
   Sidebar
==================== */
.sidebar {
    padding-left: 30px;
}

/* ====================
   Post Content
==================== */
.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 40px 0 20px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content ul li {
    list-style: disc;
    margin-bottom: 10px;
}

.post-content ol li {
    list-style: decimal;
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light-gray);
}

.post-content img {
    border-radius: var(--radius);
    margin: 30px 0;
}

/* ====================
   Portfolio Single
==================== */
.portfolio-single-header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-single-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.portfolio-single-meta-item {
    text-align: center;
}

.portfolio-single-meta-item span {
    display: block;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 5px;
}

.portfolio-single-meta-item strong {
    color: var(--text-white);
    font-weight: 600;
}

/* ====================
   404 Page
==================== */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-size: 10rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-404 h2 {
    margin-bottom: 20px;
}

.error-404 p {
    margin-bottom: 40px;
}

/* ====================
   Responsive Adjustments
==================== */
@media (max-width: 992px) {
    .sidebar {
        padding-left: 0;
        margin-top: 60px;
    }
    
    .portfolio-single-meta {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .error-404 h1 {
        font-size: 6rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input {
        border-radius: var(--radius);
        margin-bottom: 10px;
    }
    
    .search-form button {
        border-radius: var(--radius);
    }
}

/* ====================
   Animation Classes
==================== */
.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* ====================
   Hover Effects
==================== */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ====================
   Gradient Text
==================== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================
   Custom Scrollbar
==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ====================
   Selection
==================== */
::selection {
    background: var(--primary-color);
    color: var(--text-white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-white);
}
