/* Common Styles for DevineTools - Save as: /common/style.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 5px;
}

.dropdown {
    position: relative;
}

.dropbtn {
    background: transparent;
    color: #333;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.dropbtn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    top: 100%;
    margin-top: 0px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

/* Main Content Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Page Content Sections */
.content-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Tool Card Styles */
.tool-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.tool-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.tool-card h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.tool-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Typography */
h1 {
    color: #1a1a1a;
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    color: #1a1a1a;
    font-size: 2em;
    margin-bottom: 20px;
}

h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
}

p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #764ba2;
}

/* Footer Styles */
footer {
    background: white;
    color: black;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}
.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: black;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #667eea;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

/* Forms and Inputs */
input[type="text"],
input[type="number"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* Tool Interface Styles */
.tool-interface {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: #764ba2;
}

/* Results Display */
.results-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.result-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert/Message Boxes */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none;
}

.show {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    nav.active {
        display: flex;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropbtn {
        width: 100%;
        text-align: left;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    .main-container {
        padding: 20px 15px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .tool-interface {
        padding: 20px;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================
   TOOL PAGE LAYOUT (Split PDF, etc.)
   ================================ */

main.tool-page {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

/* Match the breadcrumb class used in tool pages */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}
.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Hero / tool top section */
.tool-hero {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    margin-bottom: 30px;
}

.tool-hero h1 {
    margin-bottom: 10px;
}

.tool-intro {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
}

/* Upload area for PDF (drag & drop) */
.tool-upload-area {
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f9fafb;
    margin-bottom: 20px;
}

.tool-upload-area:hover,
.tool-upload-area.drag-over {
    background: rgba(102, 126, 234, 0.06);
    border-color: #764ba2;
}

.tool-upload-area p.upload-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.tool-upload-area p.upload-subtitle {
    font-size: 14px;
    color: #777;
}

/* Hide the actual file input but keep it accessible */
.tool-upload-area input[type="file"] {
    margin-top: 15px;
}

/* Split options */
.split-options {
    margin-top: 15px;
}

.radio-option {
    display: block;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    font-size: 14px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
}

.range-input-wrapper {
    margin: 10px 0 15px 0;
}

.range-input-wrapper small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #777;
}

/* Primary button (used on tools) */
.primary-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Status + results */
.status-message {
    margin-top: 12px;
    font-size: 14px;
    color: #333;
}

.results-list {
    margin-top: 20px;
}

.download-link {
    font-weight: 600;
    font-size: 14px;
}

.security-note {
    margin-top: 8px;
    font-size: 12px;
    color: #777;
}

/* Updated date under hero */
.updated-date {
    font-size: 13px;
    color: #f0f0f0;
    margin-bottom: 10px;
}

/* Ordered steps */
.numbered-steps {
    padding-left: 25px;
}

.numbered-steps li {
    margin-bottom: 8px;
}

/* Feature / benefit lists */
.feature-list,
.benefit-list,
.related-tool-links {
    list-style: disc;
    padding-left: 25px;
}

.feature-list li,
.benefit-list li,
.related-tool-links li {
    margin-bottom: 8px;
}

/* FAQ section tweaks */
.faq-section h3 {
    margin-top: 15px;
}

/* Related tools block */
.related-tools p {
    margin-bottom: 10px;
}

/* Bottom call to action */
.bottom-cta {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}

/* Utility for hidden headings etc. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Make tool page look nice on mobile */
@media (max-width: 768px) {
    main.tool-page {
        padding: 0 15px;
        margin: 20px auto 40px;
    }
    
    .tool-hero {
        padding: 20px;
    }
    
    .tool-upload-area {
        padding: 30px 15px;
    }
    
    .bottom-cta {
        padding: 20px;
    }
}


