/*
Theme Name: ResumeBuilder Pro
Theme URI: https://resumebuilder.pro
Description: Professional Resume and Cover Letter Builder Theme
Author: ResumeBuilder
Author URI: https://resumebuilder.pro
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: resumebuilder-pro
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with the community.
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #111;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
/* ========================================
   NAVBAR - IMPROVED VERSION
   ======================================== */

.navbar {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #007bff;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

.nav-brand h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.nav-brand h1 i {
    color: #007bff;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link,
.nav-menu-list .nav-link {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-link:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.15);
    border-bottom: 3px solid #007bff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #007bff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: #007bff;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: #007bff;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(180deg, #000 0%, #1a1a1a 100%);
        width: 100%;
        text-align: left;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 1rem 0;
        gap: 0;
        border-top: 2px solid #007bff;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-menu-list li {
        width: 100%;
    }
    
    .nav-menu-list li a {
        padding: 15px 20px;
        border-radius: 0;
        border-left: 3px solid transparent;
    }
    
    .nav-menu-list li a:hover {
        border-left-color: #007bff;
        background: rgba(0, 123, 255, 0.1);
        transform: none;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-radius: 0;
        border-left: 3px solid transparent;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover {
        border-left-color: #007bff;
        background: rgba(0, 123, 255, 0.1);
        transform: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: auto;
        padding: 0.75rem 15px;
    }
    
    .nav-brand h1 {
        font-size: 1rem;
        gap: 8px;
    }
}


/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #007bff, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
}

/* Container Layouts */
.resume-builder-container,
.cover-letter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.form-section,
.preview-section {
    background: #222;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group h3 {
    color: #007bff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

.form-group h3 i {
    margin-right: 10px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

input,
textarea,
select {
    background: #333;
    border: 2px solid #444;
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

label {
    display: block;
    color: #ccc;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Button Styles */
.btn-primary,
.btn-secondary,
.add-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: #666;
    color: #fff;
}

.btn-secondary:hover {
    background: #777;
    transform: translateY(-2px);
}

.add-btn {
    background: #28a745;
    color: #fff;
    margin-top: 1rem;
}

.add-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Skills Tags */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background: #007bff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Preview Section */
.preview-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
}

.preview-header h3 {
    color: #28a745;
    font-size: 1.3rem;
}

.resume-preview,
.cover-letter-preview {
    max-width: 850px;  /* Standard letter size */
    background: #fff;
    color: #333;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    min-height: 600px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.preview-header-info h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.preview-section {
    margin-bottom: 1.5rem;
}

.preview-section h2 {
    color: #007bff;
    font-size: 1.2rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.3rem;
    margin-bottom: 0.8rem;
}

/* Blog Styles */
.search-bar {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-bar input {
    padding-right: 50px;
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.blog-categories {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.category-btn {
    background: #333;
    color: #fff;
    border: 2px solid #444;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: #222;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.category {
    background: #007bff;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.date {
    color: #999;
}

.blog-content h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-content p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #28a745;
    transform: translateX(5px);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #000 0%, #111 100%);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 3px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #007bff;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    background: #333;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #007bff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* WordPress Specific */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    color: #007bff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.entry-meta {
    color: #999;
    font-size: 0.9rem;
}

.entry-content {
    color: #ccc;
    line-height: 1.8;
    margin: 2rem 0;
}

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

.entry-content h2,
.entry-content h3 {
    color: #007bff;
    margin: 1.5rem 0 1rem 0;
}

/* FAQ Styles */
.faq-section {
    margin-bottom: 2rem;
}

.faq-item {
    background: #222;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: #333;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #444;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #222;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .resume-builder-container,
    .cover-letter-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-section,
    .preview-section {
        padding: 1rem;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero-section {
        padding: 1rem 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .form-section,
    .preview-section {
        padding: 0.5rem;
    }

    .resume-preview,
    .cover-letter-preview {
        padding: 1rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* WordPress Blocks */
.wp-block-image {
    margin: 1rem 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.wp-block-quote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #ccc;
}

.wp-block-table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid #333;
    padding: 0.5rem;
}

.wp-block-table th {
    background: #333;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.notification-error {
    background: #dc3545;
}

.close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}