/* AgentVil Custom Styles - Blue and White Theme */
:root {
    --ph-blue: #2563eb;
    --ph-blue-light: #3b82f6;
    --ph-gray: #6b7280;
    --ph-light-gray: #f8fafc;
    --ph-dark: #1e293b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
}

.ph-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.ph-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--ph-blue);
    text-decoration: none;
}

.ph-search {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.ph-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

.ph-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ph-nav a {
    color: var(--ph-gray);
    text-decoration: none;
    font-weight: 500;
}

.ph-nav a:hover {
    color: var(--ph-blue);
}

.ph-btn {
    background: var(--ph-blue);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.ph-btn:hover {
    background: var(--ph-blue-light);
    color: white !important;
}

.ph-btn:visited {
    color: white !important;
}

.ph-btn:active {
    color: white !important;
}

.ph-hero {
    background: var(--ph-light-gray);
    padding: 40px 0;
    text-align: center;
}

.ph-hero h1 {
    font-size: 48px;
    font-weight: bold;
    color: var(--ph-dark);
    margin-bottom: 16px;
}

.ph-hero p {
    font-size: 20px;
    color: var(--ph-gray);
    margin-bottom: 32px;
}

.ph-products-section {
    padding: 60px 0;
}

.ph-section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--ph-dark);
    margin-bottom: 40px;
}

.ph-product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ph-product-card:hover {
    border-color: var(--ph-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.ph-product-rank {
    font-size: 18px;
    font-weight: bold;
    color: var(--ph-gray);
    min-width: 30px;
}

.ph-product-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ph-blue), var(--ph-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.ph-product-content {
    flex: 1;
}

.ph-product-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--ph-dark);
    text-decoration: none;
    margin-bottom: 4px;
    display: block;
}

.ph-product-name:hover {
    color: var(--ph-blue);
}

.ph-product-description {
    color: var(--ph-gray);
    font-size: 14px;
    margin-bottom: 12px;
}

.ph-product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ph-tag {
    background: var(--ph-light-gray);
    color: var(--ph-gray);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
}

.ph-tag:hover {
    background: var(--ph-blue);
    color: white;
}

.ph-product-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ph-upvote-btn {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ph-upvote-btn:hover {
    border-color: var(--ph-blue);
    background: var(--ph-blue);
    color: white;
}

.ph-upvote-count {
    font-weight: bold;
    font-size: 14px;
}

.ph-comments {
    color: var(--ph-gray);
    font-size: 12px;
    text-decoration: none;
}

.ph-newsletter {
    background: var(--ph-light-gray);
    padding: 60px 0;
    text-align: center;
}

.ph-newsletter h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--ph-dark);
    margin-bottom: 16px;
}

.ph-newsletter-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.ph-newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.ph-footer {
    background: var(--ph-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.ph-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ph-footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
}

.ph-footer-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .ph-product-card {
        flex-direction: column;
        text-align: center;
    }

    .ph-product-stats {
        flex-direction: row;
        justify-content: center;
    }

    .ph-hero h1 {
        font-size: 32px;
    }

    .ph-newsletter-form {
        flex-direction: column;
    }
}
