/* ========================================
   PDFWorld - Component Styles
   Header, Footer, Buttons, Cards
   ======================================== */

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.navbar-v2 {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3pxrgba(0, 0, 0, 0.05);
    width: 100%;
    /* Ensure full width coverage */
}

.navbar-v2.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-v2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
    transition: transform 0.2s ease;
}

.logo-v2:hover {
    transform: scale(1.02);
}

.logo-icon-v2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.75rem;
}

.nav-menu-v2 {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link-v2 {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link-v2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link-v2:hover,
.nav-link-v2.active {
    color: var(--primary-600);
}

.nav-link-v2:hover::after,
.nav-link-v2.active::after {
    width: 100%;
}

.btn-contact-v2 {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: white;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-contact-v2:hover {
    border-color: var(--primary-600);
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn-v2 {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.mobile-menu-btn-v2:hover {
    transform: scale(1.1);
}

/* ========================================
   FOOTER
   ======================================== */

.footer-v2 {
    background: white;
    border-top: 1px solid var(--border-light);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
}

.footer-links-v2 {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-link-v2 {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link-v2:hover {
    color: var(--primary-600);
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    filter: brightness(1.1);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--primary-600);
    color: var(--primary-600);
    transform: translateY(-1px);
}

.btn-upload {
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ========================================
   CARDS
   ======================================== */

.tool-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #A5B4FC;
}

.tool-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.tool-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.tool-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.tool-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #ECFDF5;
    color: #059669;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Option Cards (for tool settings) */
.option-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.option-card:hover {
    border-color: #A5B4FC;
    background: #F5F7FF;
}

.option-card.selected {
    border-color: var(--primary-600);
    background: #EEF2FF;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* ========================================
   FEATURE CARDS
   ======================================== */

.feature-card {
    text-align: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: #F0FDF4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.feature-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   GRIDS
   ======================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

@media (max-width: 1400px) {
    .tools-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.features-grid {
    max-width: 1000px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.badge-primary {
    color: var(--primary-600);
    border-color: var(--primary-600);
    background: #EEF2FF;
}

.badge-success {
    color: #059669;
    border-color: #059669;
    background: #ECFDF5;
}