/* URL Encoder/Decoder Tool Styles - Professional Design */
/* Emerald Green Theme: #10b981 */

/* Reset for our tool only */
.url-encoder-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Tool Description Section - Header Only */
.tool-description-section {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 50px 0 25px;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-description-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

.tool-description-section .url-encoder-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.tool-main-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-subtitle {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA with Icon */
.start-encoding-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0 30px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.cta-icon {
    font-size: 1.8rem;
    color: #34d399;
    animation: bounce 2s infinite;
}

.cta-text {
    font-size: 1.4rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.cta-text:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Container */
.url-encoder-container {
    background-color: #f8fafc;
    padding: 30px 0 60px;
    width: 100%;
    min-height: 100vh;
}

.url-encoder-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Layout - Tool and Sidebar */
.tool-layout {
    display: flex;
    gap: 30px;
    position: relative;
    margin-top: 30px;
}

.main-content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-area {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Input Section */
.input-section {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.02);
    padding: 30px;
    width: 100%;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08), 0 8px 15px rgba(0, 0, 0, 0.03);
}

.input-section h2 {
    color: #059669;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.section-icon {
    font-size: 1.6rem;
}

/* Textarea */
#urlInput {
    width: 100%;
    min-height: 180px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
    line-height: 1.6;
    font-family: 'Monaco', 'Courier New', monospace;
    margin-bottom: 10px;
    background: #f8fafc;
    color: #334155;
}

#urlInput:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    background: white;
}

#urlInput::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0 25px;
    padding: 16px 20px;
    background: linear-gradient(to right, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #065f46;
    animation: fadeIn 0.5s ease;
    border-left: 4px solid #10b981;
}

.privacy-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.privacy-text {
    line-height: 1.5;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Operation Selector */
.operation-selector {
    margin: 25px 0;
}

.operation-group h3 {
    color: #334155;
    margin-bottom: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.operation-group h3::before {
    content: '⚙️';
    font-size: 1.1rem;
}

.operation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.operation-option {
    cursor: pointer;
    position: relative;
}

.operation-option input {
    display: none;
}

.operation-label {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.operation-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #10b981;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.operation-option input:checked + .operation-label {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.03);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.operation-option input:checked + .operation-label::before {
    transform: scaleX(1);
}

.operation-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.operation-option input:checked + .operation-label .operation-icon {
    transform: scale(1.1);
}

.operation-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.operation-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    flex-grow: 1;
}

/* Buttons */
.url-encoder-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.url-encoder-buttons .btn {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% { transform: scale(0, 0); opacity: 0.5; }
    100% { transform: scale(20, 20); opacity: 0; }
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #334155;
}

.btn-clear {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-clear:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Loading Spinner */
.url-encoder-loading {
    display: none;
    text-align: center;
    padding: 30px;
    margin-top: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.loading-spinner {
    border: 4px solid #f1f5f9;
    border-top: 4px solid #10b981;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.url-encoder-loading p {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Results Section */
.results-section {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.02);
    padding: 30px;
    width: 100%;
    border: 1px solid #e2e8f0;
}

.results-section h2 {
    color: #059669;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

/* Output Container */
.output-container {
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.output-container:hover {
    border-color: #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}

.output-header {
    background: linear-gradient(to right, #10b981, #34d399);
    color: white;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.output-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.output-header h3::before {
    content: '📋';
    font-size: 1.2rem;
}

.output-stats {
    display: flex;
    gap: 25px;
    font-size: 0.95rem;
}

.output-stats .stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.output-area {
    padding: 25px;
}

#outputResult {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    background: white;
    color: #1f2937;
    transition: border 0.3s ease;
}

#outputResult:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.output-actions {
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(241, 245, 249, 0.5);
}

/* Analysis Section */
.analysis-section {
    margin: 30px 0;
}

.analysis-section h3 {
    color: #374151;
    margin-bottom: 25px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.analysis-section h3::before {
    content: '📊';
    font-size: 1.2rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 22px 20px;
    text-align: center;
    border-left: 5px solid #10b981;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #10b981, #34d399);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #059669;
    margin-bottom: 8px;
    line-height: 1;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.stat-label {
    font-size: 0.92rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Character Reference */
.highlight-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 14px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid #bbf7d0;
    border-left: 6px solid #10b981;
}

.highlight-title {
    color: #065f46;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reference-table {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #d1fae5;
    background: white;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
}

.reference-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.reference-table th {
    background: linear-gradient(to right, #10b981, #34d399);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.reference-table th:last-child {
    border-right: none;
}

.reference-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 0.95rem;
    border-right: 1px solid #f1f5f9;
}

.reference-table td:last-child {
    border-right: none;
}

.reference-table tr:hover {
    background: #f8fafc;
}

.reference-table code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #059669;
    font-weight: 600;
}

/* Export Options */
.export-options {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    border: 2px solid #e2e8f0;
}

.export-options h3 {
    margin: 0 0 20px 0;
    color: #334155;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-options h3::before {
    content: '📁';
    font-size: 1.2rem;
}

.export-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

/* Tool Description Content */
.tool-description-content {
    background: white;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.02);
    margin-top: 20px;
    border: 1px solid #e2e8f0;
}

.tool-description-content .tool-description {
    margin-bottom: 40px;
}

.tool-description-content .tool-description p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 25px;
    text-align: justify;
}

.tool-description-content .tool-features {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}

.tool-description-content .tool-features h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.tool-description-content .tool-features ul {
    list-style-type: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.tool-description-content .tool-features li {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border-left: 4px solid #10b981;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.tool-description-content .tool-features li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #10b981;
}

.tool-description-content .tool-features li strong {
    color: #059669;
    font-weight: 700;
}

/* How to Use Section */
.how-to-use-section {
    margin-top: 40px;
    padding-top: 35px;
    border-top: 2px solid #f1f5f9;
}

.how-to-use-section h2 {
    color: #1e293b;
    margin-bottom: 30px;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-bottom: 35px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 17px;
    width: 2px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, #10b981, #34d399);
    opacity: 0.3;
}

.step:last-child::before {
    display: none;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    position: relative;
    z-index: 1;
}

.step-content h3 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 700;
}

.step-content p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Related Tools Section */
.related-tools-section {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    margin: 40px 0 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.related-tools-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.15rem;
    margin-bottom: 45px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tool-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #10b981, #34d399);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.tool-card:hover .tool-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-card-title {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.tool-card-desc {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 1rem;
}

.tool-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-tag {
    background: rgba(16, 185, 129, 0.15);
    color: #065f46;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-card:hover .feature-tag {
    background: rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
}

.tool-card-link {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border: 2px solid transparent;
}

.tool-card-link:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    border-color: white;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    margin-top: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 22px 25px;
    text-align: left;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: none;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #059669;
}

.faq-question.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.faq-toggle {
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: #64748b;
    margin-left: 15px;
    flex-shrink: 0;
}

.faq-question.active .faq-toggle {
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-question.active + .faq-answer {
    max-height: 2000px;
    transition: max-height 1s ease-in-out;
}

.faq-answer-content {
    padding: 25px 30px;
    margin: 0;
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
    background: white;
}

.faq-answer-content p {
    margin-bottom: 15px;
}

.faq-answer-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.faq-answer-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.faq-answer-content strong {
    color: #059669;
    font-weight: 700;
}

/* Ad Container Styles */
.ad-container {
    margin: 30px 0;
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #f59e0b, #fbbf24);
}

.ad-label {
    font-size: 0.85rem;
    color: #f59e0b;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.ad-unit {
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: #f8fafc;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.ad-unit ins {
    border-radius: 8px !important;
}

.ad-top-sidebar {
    margin-top: 0;
}

/* Hide mobile ads on desktop */
@media (min-width: 769px) {
    .ad-mobile {
        display: none !important;
    }
}

/* Show mobile ads on mobile */
@media (max-width: 768px) {
    .ad-desktop {
        display: none !important;
    }
    
    .ad-container {
        margin: 25px 0;
        padding: 15px;
    }
}

/* Sidebar Styles */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sticky-ad {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.widget-icon {
    font-size: 1.1rem;
}

.tips-list, .tools-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.tips-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    padding-left: 25px;
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tools-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.tools-list li:last-child {
    border-bottom: none;
}

.tools-list a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    padding-left: 35px;
}

.tools-list a::before {
    content: '→';
    position: absolute;
    left: 12px;
    color: #10b981;
    transition: transform 0.3s ease;
}

.tools-list a:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding-left: 40px;
    transform: translateX(5px);
}

.tools-list a:hover::before {
    transform: translateX(5px);
}

/* Breadcrumb Navigation Styles */
.breadcrumb-container {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    margin-bottom: 25px;
}

.breadcrumb {
    font-size: 0.95rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-link:hover {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    transform: translateY(-1px);
}

.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: #059669;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 0 4px;
}

.breadcrumb-icon {
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tool-layout {
        flex-direction: column;
    }
    
    .sidebar-area {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        order: 2;
    }
    
    .sticky-ad {
        position: static;
    }
    
    .main-content-area {
        order: 1;
    }
    
    .tool-main-title {
        font-size: 2.4rem;
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-description-content .tool-features ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .tool-description-section {
        padding: 35px 0 20px;
    }
    
    .tool-main-title {
        font-size: 2rem;
    }
    
    .tool-subtitle {
        font-size: 1.1rem;
    }
    
    .input-section,
    .results-section,
    .tool-description-content,
    .related-tools-section,
    .faq-section {
        padding: 25px 20px;
    }
    
    .input-section h2,
    .results-section h2,
    .tool-description-content h2,
    .related-tools-section h2,
    .faq-section h2 {
        font-size: 1.4rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .url-encoder-buttons {
        grid-template-columns: 1fr;
    }
    
    .export-buttons {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-area {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        font-size: 1.05rem;
        padding: 18px 20px;
    }
    
    .info-list li {
        flex-direction: column;
        gap: 5px;
    }
    
    .operation-options {
        grid-template-columns: 1fr;
    }
    
    #urlInput {
        min-height: 150px;
        padding: 15px;
        font-size: 15px;
    }
    
    .tool-description-content .tool-features ul {
        grid-template-columns: 1fr;
    }
    
    .tool-description-content .tool-description p {
        font-size: 1.05rem;
    }
    
    .cta-text {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    .output-stats {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-card-title {
        font-size: 1.2rem;
    }
    
    .ad-container {
        padding: 12px;
    }
    
    .tool-main-title {
        font-size: 1.8rem;
    }
    
    .section-icon {
        font-size: 1.3rem;
    }
    
    .tool-subtitle {
        font-size: 1rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
        padding: 8px 16px;
    }
    
    .cta-icon {
        font-size: 1.5rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 15px 18px;
    }
    
    .faq-answer-content {
        padding: 18px 20px;
        font-size: 0.95rem;
    }
}

/* Large Desktop (min 1200px) */
@media (min-width: 1200px) {
    .url-encoder-wrapper {
        padding: 0;
    }
}

/* Print Styles */
@media print {
    .ad-container,
    .sidebar-area,
    .url-encoder-buttons .btn,
    .export-options,
    .related-tools-section,
    .faq-section,
    .breadcrumb-container {
        display: none !important;
    }
    
    .url-encoder-container {
        background: white;
        padding: 0;
    }
    
    .tool-description-section {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
        border-bottom: 2px solid #ddd;
    }
    
    .input-section,
    .results-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}