/*
Theme Name: BTK Rate Theme
Theme URI: https://btkrate.com
Author: 5TechSolution
Author URI: https://5techsolution.com
Description: Custom WordPress theme for Bahria Town Karachi Rate website. Features: Daily Rates Manager, Estimate Requests, Visitor Logs, Theme Options. Clean, fast, and SEO friendly.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: btk-theme
*/

:root {
    --gold: #b8860b;
    --gold-light: #d4af37;
    --gold-dark: #8b6508;
    --green: #4a9c2d;
    --green-light: #5cb83a;
    --dark: #2c2c2c;
    --dark-light: #3d3d3d;
    --text: #333333;
    --text-muted: #666666;
    --bg: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    padding: 1rem 0;
}

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

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.logo img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.brand-info {
    flex: 1;
}

.brand-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.contact-bar {
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    display: inline-block;
}

.contact-bar span,
.contact-bar a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-bar a:hover {
    text-decoration: underline;
}

/* Navigation */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 0.75rem 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.main-nav a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    background: var(--gold);
    color: var(--white);
}

/* Navigation Buttons Section */
.nav-section {
    padding: 2rem 0;
}

.nav-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.nav-btn::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 ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-btn.dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.nav-btn.dark:hover {
    background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark) 100%);
}

.nav-btn.green {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
}

.nav-btn.green:hover {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
}

/* Page Content */
.page-content {
    background: var(--white);
    padding: 2rem 0;
    min-height: 400px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.date-info {
    color: #c41e3a;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.whatsapp-info {
    color: var(--green);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.whatsapp-info a {
    color: var(--green);
    text-decoration: none;
}

.whatsapp-info a:hover {
    text-decoration: underline;
}

/* Search Box */
.search-box {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.search-box input {
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 250px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.rates-table thead {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f0 100%);
}

.rates-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text);
    border-bottom: 2px solid #b8d4e3;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.rates-table th:hover {
    background: rgba(0,0,0,0.03);
}

.rates-table th .sort-icon {
    margin-left: 0.3rem;
    opacity: 0.5;
}

.rates-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #eee;
}

.rates-table tbody tr {
    transition: background 0.2s;
}

.rates-table tbody tr:hover {
    background: #f8f9fa;
}

.rates-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.rates-table tbody tr:nth-child(even):hover {
    background: #f0f1f2;
}

/* Form Styles */
.btk-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* WordPress Content Styles */
.entry-content {
    max-width: 100%;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 1.5rem 0 1rem;
    color: var(--text);
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content a {
    color: var(--gold);
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* PDF Download Links */
.pdf-list {
    list-style: none;
}

.pdf-list li {
    margin-bottom: 1rem;
}

.pdf-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pdf-link:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.pdf-icon {
    color: #e74c3c;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer a {
    color: var(--gold-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

/* Admin Table Styles (for frontend if needed) */
.admin-style-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-style-table th,
.admin-style-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-style-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-btn {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.nav-btn:nth-child(1) { animation-delay: 0.1s; }
.nav-btn:nth-child(2) { animation-delay: 0.2s; }
.nav-btn:nth-child(3) { animation-delay: 0.3s; }
.nav-btn:nth-child(4) { animation-delay: 0.4s; }
.nav-btn:nth-child(5) { animation-delay: 0.5s; }
.nav-btn:nth-child(6) { animation-delay: 0.6s; }
.nav-btn:nth-child(7) { animation-delay: 0.7s; }

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .contact-bar span,
    .contact-bar a {
        font-size: 0.8rem;
    }

    .main-nav .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .search-box {
        justify-content: stretch;
    }

    .search-box input {
        width: 100%;
    }

    .rates-table {
        font-size: 0.9rem;
    }

    .rates-table th,
    .rates-table td {
        padding: 0.6rem 0.8rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
