/* Main Styles for ATS-Friendly CV Creator */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header and Navigation */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3498db;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="month"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

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

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

/* Auth Forms */
.auth-form {
    max-width: 400px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-form h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* CV Creator Layout */
.cv-creator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.cv-form-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cv-preview-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.template-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.template-selector label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.work-experience-item,
.education-item,
.skill-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.remove-item {
    margin-top: 0.5rem;
}

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

/* CV Preview */
#cv-preview {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Dashboard */
.dashboard {
    margin: 2rem 0;
}

.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.dashboard-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.resumes-list {
    display: grid;
    gap: 1rem;
}

.resume-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.resume-info h3 {
    margin-bottom: 0.5rem;
}

.resume-actions {
    display: flex;
    gap: 0.5rem;
}

.account-info {
    margin-bottom: 2rem;
}

.account-info p {
    margin-bottom: 0.5rem;
}

/* Blog */
.blog-posts {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.blog-post-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-post-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.blog-post-card .meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-post-content {
    line-height: 1.7;
}

.blog-post-content h2,
.blog-post-content h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
}

.blog-post-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Templates Preview */
.templates-preview {
    padding: 4rem 0;
    background: #f8f9fa;
}

.templates-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.template-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.template-preview {
    height: 200px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
}

.template-placeholder {
    color: #666;
    font-style: italic;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}/* Premium Template Styles */
.template-category {
    margin-bottom: 2rem;
}

.template-category h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1em;
}

.template-category.premium h3 {
    color: #f39c12;
}

.template-category.premium h3 i {
    margin-right: 0.5rem;
}

.template-selector label {
    display: block;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-selector label:hover {
    border-color: #3498db;
    background: #f8f9ff;
}

.template-selector label input[type=
radio] {
    margin-right: 0.5rem;
}

.template-selector label input[type=radio]:checked + * {
    border-color: #3498db;
    background: #ebf5fb;
}

.premium-template {
    position: relative;
    opacity: 0.7;
}

.premium-template input[type=radio]:disabled {
    cursor: not-allowed;
}

.premium-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.premium-notice {
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.premium-notice strong {
    color: #533f00;
}

/* Payment Styles */
.payment-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.payment-header {
    text-align: center;
    margin-bottom: 40px;
}

.payment-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.payment-header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.pricing-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.price {
    font-size: 3em;
    font-weight: bold;
    margin: 20px 0;
}

.price sup {
    font-size: 0.5em;
    vertical-align: super;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: #ffd700;
}

.payment-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.payment-button:hover {
    background: #219a52;
}

.payment-button i {
    margin-right: 10px;
}

.demo-notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.demo-notice strong {
    color: #533f00;
}

.btn-premium {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-premium:hover {
    background: linear-gradient(45deg, #e67e22, #d35400);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.btn-premium i {
    margin-right: 5px;
}


/* CV Template Styles */
.cv-template {
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.cv-header {
    border-bottom: 3px solid #3498db;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.personal-info h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.contact-info span {
    display: flex;
    align-items: center;
}

.contact-info span:before {
    content: '•';
    margin-right: 5px;
    color: #3498db;
}

.address {
    margin-top: 10px;
    font-style: italic;
    color: #7f8c8d;
}

.cv-section {
    margin-bottom: 30px;
}

.cv-section h2 {
    font-size: 1.5em;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.work-item, .education-item {
    margin-bottom: 20px;
}

.work-header h3, .education-header h3 {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 5px;
}

.work-dates, .education-dates {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.work-item p, .education-item p {
    margin-left: 20px;
    color: #555;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

/* Professional Template Specific */
.professional-template {
    font-family: 'Times New Roman', serif;
}

.professional-template .cv-header {
    border-bottom-color: #2c3e50;
}

.professional-template h1 {
    font-family: 'Times New Roman', serif;
}

/* Modern Template Specific */
.modern-template {
    font-family: 'Helvetica', sans-serif;
}

.modern-template .cv-header {
    border-bottom: none;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 30px;
    margin: -40px -40px 30px -40px;
    border-radius: 8px 8px 0 0;
}

.modern-template .personal-info h1 {
    color: white;
}

.modern-template .contact-info {
    color: rgba(255,255,255,0.9);
}

/* Creative Template Specific */
.creative-template {
    font-family: 'Georgia', serif;
}

.creative-template .cv-header {
    border-bottom-color: #e74c3c;
    position: relative;
}

.creative-template .cv-header:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

/* Additional template variations */
.elegant-template .cv-header {
    border-bottom-color: #9b59b6;
}

.tech-template .cv-header {
    border-bottom-color: #1abc9c;
}

.minimal-template {
    font-family: 'Arial', sans-serif;
}

.minimal-template .cv-section h2 {
    border-bottom: 1px solid #ecf0f1;
    font-weight: normal;
}

.bold-template .cv-section h2 {
    font-weight: bold;
    color: #e74c3c;
}

.colorful-template .skill-tag {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
}
