/*
Theme Name: PawRelocate
Theme URI: https://pawrelocate.com
Author: Your Name
Author URI: https://pawrelocate.com
Description: A custom WordPress theme for PawRelocate, featuring pet relocation information and a custom user tracking dashboard.
Version: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pawrelocate
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #1e293b; /* Dark Slate Blue */
    --secondary-color: #10b981; /* Vibrant Mint/Teal */
    --background-color: #f8fafc; /* Very light slate */
    --text-color: #334155;
    --light-bg: #ffffff;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--light-bg);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
}

header a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 800;
}

.hero {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 24px;
    margin-bottom: 3rem;
}

.hero h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
    gap: 2rem;
}

.step {
    background: var(--light-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 220px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.dashboard-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.tracking-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.tracking-item {
    background: #f1f2f6;
    padding: 1rem;
    border-radius: 4px;
}

.tracking-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

footer {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 4rem;
}

/* --------------------------------------------------------------
   Tracking Dashboard Styles
   -------------------------------------------------------------- */
.dashboard-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.dashboard-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.status-badge {
    background: #2ecc71;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

/* Tracking Timeline */
.tracking-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 3rem 0;
    padding: 0 2rem;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 33.33%;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.2rem;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px #e0e0e0;
    transition: all 0.3s ease;
}

.timeline-step.completed .timeline-icon {
    background: var(--secondary-color);
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.timeline-step.active .timeline-icon {
    background: #2ecc71;
    box-shadow: 0 0 0 2px #2ecc71;
    animation: pulse-ring 2s infinite;
}

.timeline-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.timeline-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* Tracking Details Grid */
.tracking-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #95a5a6;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; box-shadow: 0 0 10px rgba(46, 204, 113, 0.5); }
    100% { opacity: 1; }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@media (max-width: 768px) {
    .tracking-timeline {
        flex-direction: column;
        padding: 0;
    }
    .tracking-timeline::before {
        top: 0;
        left: 24px;
        width: 4px;
        height: 100%;
    }
    .timeline-step {
        width: 100%;
        display: flex;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 2rem;
    }
    .timeline-icon {
        margin: 0 1.5rem 0 0;
    }
}

/* --------------------------------------------------------------
   Homepage Additions (Images & Ticker)
   -------------------------------------------------------------- */
.hero {
    background-image: linear-gradient(rgba(30, 41, 59, 0.75), rgba(30, 41, 59, 0.75)), url('https://images.unsplash.com/photo-1450778869180-41d0601e046e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.home-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.home-image-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-image-grid img:hover {
    transform: translateY(-10px);
}

/* Ticker Styles */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    box-sizing: border-box;
    display: flex;
}

.ticker {
    display: flex;
    width: max-content;
    animation: ticker 30s linear infinite;
}

.ticker-content {
    display: flex;
    flex-shrink: 0;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.95rem;
}

.ticker-item i {
    color: #2ecc71;
    margin-right: 0.5rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------
   Dashboard Accordion (List View)
   -------------------------------------------------------------- */
.tracking-list-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

details.tracking-accordion {
    border-bottom: 1px solid #eaeaea;
}

details.tracking-accordion:last-child {
    border-bottom: none;
}

summary.tracking-summary {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    list-style: none; /* Hide default marker in some browsers */
}

summary.tracking-summary::-webkit-details-marker {
    display: none; /* Hide default marker in Safari/Chrome */
}

summary.tracking-summary:hover {
    background: #f1f2f6;
}

/* Custom dropdown arrow */
summary.tracking-summary::after {
    content: '▼';
    font-size: 0.9rem;
    color: #95a5a6;
    transition: transform 0.3s ease;
}

details[open] summary.tracking-summary::after {
    transform: rotate(180deg);
}

details[open] summary.tracking-summary {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
}

.tracking-accordion-content {
    padding: 2rem;
    background: #fff;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------
   Master-Detail Dashboard Layout
   -------------------------------------------------------------- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

.dashboard-sidebar {
    background: #f8f9fa;
    border-right: 1px solid #eaeaea;
    padding: 1.5rem 0;
    border-radius: 8px 0 0 8px;
}

.dashboard-sidebar h3 {
    padding: 0 1.5rem;
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 1rem;
}

.order-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #eaeaea;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item:hover {
    background: #f1f2f6;
}

.order-item.active {
    background: #fff;
    border-left: 4px solid var(--secondary-color);
    color: var(--primary-color);
}

.dashboard-main {
    padding: 2rem;
}

.order-detail {
    display: none;
    animation: fadeIn 0.3s ease;
}

.order-detail.active {
    display: block;
}

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

@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        border-right: none;
        border-bottom: 1px solid #eaeaea;
        border-radius: 8px 8px 0 0;
    }
}
