/* Pak Post Tracker Plugin Styles */
.pak-post-tracker-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pak-post-tracker-container {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.pak-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.pak-post-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.brand h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

.header-main {
    text-align: center;
    margin-bottom: 1rem;
}

.title-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
}

.tracking-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tracking-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.track-button {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    color: #dc2626;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.track-button:hover {
    background: white !important;
    color: #dc2626 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.track-button:not(.loading):hover {
    background: white !important;
    color: #dc2626 !important;
}

/* Loading Animation */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-top: 2px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.track-button.loading .btn-text {
    display: none !important;
}

.track-button.loading .loader {
    display: flex !important;
}

.track-button.loading {
    pointer-events: none;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.9) !important;
}

.track-button .loader {
    display: none;
}

/* Results Section */
.results-section {
    padding: 2rem 0;
    background: #f5f5f5;
    min-height: 400px;
}

.results-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.results-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tracking-results {
    padding: 2rem;
}

.tracking-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid #dc2626;
}

.info-item {
    text-align: center;
}

.info-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.125rem;
}

.tracking-timeline {
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: 2rem;
}

.timeline-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.timeline-header p {
    color: #6b7280;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dc2626;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #dc2626;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #dc2626;
}

.timeline-date {
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 1rem;
    margin-left: -2rem;
}

.timeline-entry {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-entry:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.timeline-time {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.timeline-location {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.timeline-status {
    color: #6b7280;
    line-height: 1.5;
}

/* Error Section */
.error-section {
    padding: 2rem 0;
    background: #f5f5f5;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.error-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    width: 4rem;
    height: 4rem;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.error-card h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.error-card p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.close-btn-error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn-error:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .title-section h2 {
        font-size: 2rem;
    }

    .tracking-form {
        flex-direction: column;
        gap: 1rem;
    }

    .tracking-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 0.75rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -1.5rem;
    }
    
    .timeline-date {
        margin-left: -1.5rem;
    }
    
    .results-card {
        margin: 0 1rem;
    }
    
    .error-card {
        margin: 0 1rem;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .brand h1 {
        font-size: 1.5rem;
    }
    
    .title-section h2 {
        font-size: 1.75rem;
    }
    
    .tracking-results {
        padding: 1rem;
    }
    
    .timeline-entry:hover {
        transform: none;
    }
}

/* WordPress specific overrides */
.pak-post-tracker-container h1,
.pak-post-tracker-container h2,
.pak-post-tracker-container h3,
.pak-post-tracker-container h4 {
    color: inherit;
}

.pak-post-tracker-container a {
    color: inherit;
    text-decoration: none;
}

.pak-post-tracker-container button {
    font-family: inherit;
}

.pak-post-tracker-container input {
    font-family: inherit;
}