/**
 * Pawspick.com - Main Stylesheet
 * Minimal theme with lively colors
 */

:root {
    /* Colors - Pet-friendly palette */
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #4ecdc4;
    --accent: #95e1d3;
    --success: #6bcf7f;
    --warning: #feca57;
    --error: #ee5a6f;
    
    /* Neutrals */
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --text: #2d3436;
    --text-light: #636e72;
    --border: #dfe6e9;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Navigation */
.navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
}

.navbar-menu li a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.navbar-menu li a:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.navbar-menu li a i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.navbar-menu li a.active {
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s;
}

/* Buttons - Standardized Styles */
.btn-primary, .btn-secondary, .btn-action, .btn-view, .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 44px; /* Ensure proper touch target */
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-action {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.btn-action:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-view {
    background: var(--secondary);
    color: white;
    box-shadow: 0 2px 4px rgba(78, 205, 196, 0.3);
}

.btn-view:hover {
    background: #3db5a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(78, 205, 196, 0.4);
}

.btn-link {
    background: transparent;
    color: var(--primary);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: none;
    min-height: auto;
}

.btn-link:hover {
    text-decoration: underline;
    background: rgba(255, 107, 53, 0.1);
}

.btn-danger {
    background: var(--error);
    color: white;
    box-shadow: 0 2px 4px rgba(238, 90, 111, 0.3);
}

.btn-danger:hover {
    background: #dc4a5d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 4px rgba(107, 207, 127, 0.3);
}

.btn-success:hover {
    background: #5ab86d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 207, 127, 0.4);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 52px;
}

/* Remove default link styling for buttons */
a.btn-primary, a.btn-secondary, a.btn-action, a.btn-view, a.btn-link,
button.btn-primary, button.btn-secondary, button.btn-action, button.btn-view {
    text-decoration: none;
    border: none;
}

/* Ensure buttons work as links */
a.btn-primary:visited, a.btn-secondary:visited, a.btn-action:visited, a.btn-view:visited {
    color: inherit;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    min-height: 44px;
    min-width: 44px;
    transition: all 0.3s ease;
}

.pagination a.btn-action {
    background: var(--primary);
    color: white;
}

.pagination a.btn-action:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
}

.pagination a.btn-action.active,
.pagination span.current {
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: default;
}

.pagination span.disabled,
.pagination span:not(.current):not(a) {
    color: #636e72;
    cursor: default;
    background: transparent;
}

/* Remove default link styling globally - ensure all links that should be buttons use button classes */
a:not(.btn-primary):not(.btn-secondary):not(.btn-action):not(.btn-view):not(.btn-link):not(.navbar-menu a):not(.footer-section a):not(.breadcrumb a) {
    color: var(--text);
    text-decoration: none;
}

a:not(.btn-primary):not(.btn-secondary):not(.btn-action):not(.btn-view):not(.btn-link):not(.navbar-menu a):not(.footer-section a):not(.breadcrumb a):hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.facebook-widget {
    margin: 2rem auto;
    max-width: 500px;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.facebook-widget .fb-page {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facebook-widget .fb-page:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .facebook-widget {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .facebook-widget .fb-page {
        width: 100% !important;
    }
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

/* Breed Grid */
.breed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.breed-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.breed-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.breed-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.breed-card-content {
    padding: var(--spacing-md);
}

.breed-card h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary);
}

.breed-type {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.temperament {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
}

/* Breed Detail */
.breed-detail {
    max-width: 900px;
    margin: 0 auto;
}

.breed-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.breed-image img {
    width: 100%;
    border-radius: 8px;
}

.breed-type-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: var(--spacing-xs) 0;
}

.breed-section {
    margin-bottom: var(--spacing-lg);
}

.breed-section h2 {
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.characteristic {
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 4px;
}

/* Filters */
.filters {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
}

.filter-group {
    display: inline-block;
    margin-right: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.filter-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.auth-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--spacing-xl);
}

.alert {
    padding: var(--spacing-md);
    border-radius: 4px;
    margin-bottom: var(--spacing-md);
}

.alert-error {
    background: #fee;
    color: var(--error);
    border: 1px solid var(--error);
}

.alert-success {
    background: #efe;
    color: var(--success);
    border: 1px solid var(--success);
}

/* Admin */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.stat-card {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.action-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.action-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.source-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-error {
    background: var(--error);
    color: white;
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
    color: var(--text-light);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-light);
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Enhanced Buttons */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced Cards */
.breed-card, .feature-card, .action-card {
    position: relative;
    overflow: hidden;
}

.breed-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.breed-card:hover::before {
    left: 100%;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Enhanced Form Inputs */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: var(--spacing-md);
        border-top: 1px solid var(--border);
        display: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        gap: 0.5rem;
    }
    
    .navbar-menu li {
        width: 100%;
    }
    
    .navbar-menu li a {
        width: 100%;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .breed-header {
        grid-template-columns: 1fr;
    }
    
    .breed-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}
/* Style for the container of the social links */
/* Style for the container of the social links */
.social-icons {
    /* Ensures the icons appear side-by-side */
    display: flex;
    /* Adds space below the description text */
    margin-top: 15px; 
    /* Centers the icons if the footer section is narrow */
    align-items: center; 
}

/* --- Modern Social Icon Styling --- */

/* Container for the social links */
.social-icons {
    /* Ensures items are in a row */
    display: flex;
    /* Adds space below the text */
    margin-top: 20px; 
    /* Defines the gap between the circular icons */
    gap: 10px; 
}

/* Style for each individual social link (the circle button) */
.social-icons a {
    /* Make the container a square */
    width: 36px;
    height: 36px;
    /* Turn the square into a circle */
    border-radius: 50%; 
    /* A subtle border to give definition */
    border: 1px solid rgba(255, 255, 255, 0.4); 
    /* Set the background color (e.g., transparent or a dark shade) */
    background-color: transparent; 
    
    /* Flexbox to perfectly center the icon inside the circle */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Remove link underline */
    text-decoration: none;
    /* Smooth transition for visual feedback */
    transition: all 0.3s ease;
}

/* Style for the icon itself (inside the circle) */
.social-icons a i {
    /* Set a nice size */
    font-size: 16px; 
    /* Color: White or light grey for contrast */
    color: #00000; 
    /* Reset margins that might be inherited */
    margin: 0; 
}

/* Hover Effect: Modern Feedback */
.social-icons a:hover {
    /* Fill the circle with a background color on hover */
    background-color: #ffc107; /* A bright, visible accent color (like yellow/gold) */
    /* Remove the border when hovered */
    border-color: #ff6b35; 
}

/* Hover Effect: Change icon color (optional) */
.social-icons a:hover i {
    /* Change icon color to match the site's dark text */
    color: #fff; 
}

