/**
 * Prime Giant Logistics - Custom Styles
 * Additional styles and overrides
 * 
 * @package PrimeGiant
 * @version 1.0.0
 */

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #0a1628;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #c41230;
    border-color: #c41230;
    color: white;
}

.pagination .current {
    background: #c41230;
    border-color: #c41230;
    color: white;
}

/* ============================================
   NO POSTS MESSAGE
   ============================================ */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
}

.no-posts h2 {
    color: #0a1628;
    margin-bottom: 15px;
}

.no-posts p {
    color: #64748b;
    margin-bottom: 25px;
}

.no-posts .search-form {
    max-width: 500px;
    margin: 0 auto;
}

.no-posts .search-form input[type="search"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.no-posts .search-form button {
    padding: 15px 35px;
    background: #c41230;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.no-posts .search-form button:hover {
    background: #8b0d22;
}

/* ============================================
   SINGLE POST STYLES
   ============================================ */
.post-featured-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

.post-tags a {
    color: #c41230;
    margin-left: 5px;
}

.post-tags a:hover {
    text-decoration: underline;
}

/* Post Navigation */
.post-navigation {
    margin-top: 50px;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nav-previous,
.nav-next {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: #c41230;
    transform: translateY(-3px);
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: #c41230;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0a1628;
}

/* ============================================
   PAGE FEATURED IMAGE
   ============================================ */
.page-featured-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    height: auto;
}

.page-entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-entry-content h2,
.page-entry-content h3 {
    color: #0a1628;
    margin: 40px 0 20px;
}

.page-entry-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-entry-content ul,
.page-entry-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.page-entry-content ul {
    list-style: disc;
}

.page-entry-content ol {
    list-style: decimal;
}

.page-entry-content li {
    margin-bottom: 10px;
}

.page-entry-content blockquote {
    border-left: 4px solid #c41230;
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: #64748b;
}

.page-entry-content a {
    color: #c41230;
    text-decoration: underline;
}

.page-entry-content a:hover {
    color: #8b0d22;
}

/* ============================================
   PAGE LINKS (Post Pagination)
   ============================================ */
.page-links {
    margin-top: 30px;
    padding: 20px;
    background: #f5f7fa;
    border-radius: 10px;
}

.page-links a,
.page-links > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    margin: 0 5px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    color: #0a1628;
    font-weight: 500;
}

.page-links > span {
    background: #c41230;
    border-color: #c41230;
    color: white;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.comments-title {
    font-size: 1.8rem;
    color: #0a1628;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 10px;
}

.comment-author .fn {
    font-weight: 600;
    color: #0a1628;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #64748b;
}

.comment-content {
    color: #2d3748;
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 15px;
    color: #c41230;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background: #f5f7fa;
    border-radius: 10px;
}

.comment-reply-title {
    font-size: 1.5rem;
    color: #0a1628;
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0a1628;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #c41230;
}

.comment-form .submit {
    padding: 15px 35px;
    background: #c41230;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background: #8b0d22;
}

/* ============================================
   WIDGETS
   ============================================ */
.widget {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.widget-title {
    font-size: 1.2rem;
    color: #0a1628;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c41230;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.widget a {
    color: #2d3748;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #c41230;
}

/* ============================================
   SEARCH WIDGET
   ============================================ */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.search-form button {
    padding: 12px 20px;
    background: #c41230;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: #8b0d22;
}

/* ============================================
   SCREEN READER TEXT
   ============================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f5f7fa;
    clip: auto !important;
    clip-path: none;
    color: #0a1628;
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    padding: 15px 23px 14px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   WORDPRESS ALIGNMENT
   ============================================ */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

/* ============================================
   CAPTION
   ============================================ */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.wp-caption-text {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #64748b;
}

/* ============================================
   TABLE STYLES
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #0a1628;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f5f7fa;
}

/* ============================================
   FORM STYLES
   ============================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #c41230;
    box-shadow: 0 0 0 4px rgba(196, 18, 48, 0.1);
}

/* ============================================
   ADMIN BAR FIX
   ============================================ */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f5f7fa 4%, #e2e8f0 25%, #f5f7fa 36%);
    background-size: 1000px 100%;
}

/* ============================================
   SUCCESS/ERROR MESSAGES
   ============================================ */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.message-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-navy {
    background-color: #0a1628;
}

.bg-red {
    background-color: #c41230;
}

.bg-light {
    background-color: #f5f7fa;
}

.text-navy {
    color: #0a1628;
}

.text-red {
    color: #c41230;
}

.text-white {
    color: white;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .hero-section,
    .slider-controls,
    .slider-arrows,
    .scroll-indicator,
    .mobile-menu-toggle,
    .contact-social,
    .footer-social {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .page-content,
    .single-post {
        padding: 0;
    }
}
