/* ===== JUDGE-ME ENHANCED STYLES ===== */

/* ===== GLOBAL ENHANCEMENTS ===== */
.tool-page {
    padding: 2rem 0 5rem;
}

.tool-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.75rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.tool-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.tool-subtitle {
    text-align: center;
    color: var(--text-light);
    margin: 2rem auto 3rem;
    max-width: 700px;
    font-size: 1.125rem;
    line-height: 1.6;
    padding: 0 1rem;
}

/* ===== BREADCRUMB ENHANCEMENT ===== */
.breadcrumb {
    margin: 0 auto 2rem;
    padding: 1rem 0;
    max-width: 900px;
}

.breadcrumb ol {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    font-size: 0.95rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    color: var(--border-color);
    font-size: 1.2rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.breadcrumb span[aria-current="page"] {
    color: #6366f1;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
}

/* ===== SEO INTRO CARD ENHANCEMENT ===== */
.seo-intro-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem;
    margin: 2rem auto 3rem;
    border: 1px solid var(--border-color);
    border-left: 6px solid #6366f1;
    max-width: 900px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.seo-intro-card::before {
    content: '⚖️';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.1;
    transform: rotate(15deg);
}

.seo-intro-card h2 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.seo-intro-card p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.seo-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.benefit:hover {
    border-color: #6366f1;
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefit h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0;
    color: var(--text-color);
}

.benefit p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-light);
}

/* ===== JUDGE ME FORM ENHANCEMENT ===== */
.tool-form-container {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

.tool-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.tool-form::before {
    content: '⚖️';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2.5rem;
    opacity: 0.1;
}

.tool-form::after {
    content: '👨‍⚖️';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2.5rem;
    opacity: 0.1;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group h3 {
    text-align: center;
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.form-group h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.confession-input {
    width: 100%;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    min-height: 150px;
    font-size: 1.125rem;
    line-height: 1.6;
    display: block;
    margin: 0 auto;
    max-width: 700px;
}

.confession-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

.char-count {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.input-hint {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ===== CONFESSION TYPES ENHANCEMENT ===== */
.confession-types {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.confession-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-color);
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.confession-type:hover {
    border-color: #6366f1;
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow);
}

.confession-type input {
    display: none;
}

.confession-type input:checked + .type-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    transform: scale(1.1);
}

.confession-type input:checked + .type-icon + span {
    color: #6366f1;
    font-weight: 700;
}

.type-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.confession-type span:last-child {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* ===== JUDGE NOTICE ENHANCEMENT ===== */
.judge-notice {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border-radius: var(--radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin: 2rem auto 3rem;
    max-width: 700px;
    text-align: left;
}

.notice-icon {
    font-size: 3rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.notice-content {
    flex: 1;
}

.notice-content h4 {
    margin-top: 0;
    color: #6366f1;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.notice-content p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ===== SUBMIT BUTTON ENHANCEMENT ===== */
.form-actions {
    text-align: center;
    margin-top: 3rem;
}

.btn-judge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 1.5rem 4rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 300px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-judge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.btn-judge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.btn-judge:hover::before {
    left: 100%;
}

.btn-judge .btn-loading {
    display: none;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== EXAMPLE CONFESSIONS ENHANCEMENT ===== */
.examples {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px dashed var(--border-color);
    text-align: center;
}

.examples h3 {
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.examples h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.example-confessions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.example {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid #6366f1;
    width: 100%;
    font-family: inherit;
    line-height: 1.6;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.example:hover {
    background: var(--bg-secondary);
    transform: translateY(-5px) translateX(10px);
    border-color: #6366f1;
    box-shadow: var(--shadow);
}

.example::before {
    content: '💬';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.3;
}

/* ===== JUDGE-ME RESULTS ENHANCEMENT ===== */
.results-container {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.results-header::before {
    content: '⚖️';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    opacity: 0.1;
    transform: rotate(15deg);
}

.results-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.results-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    font-style: italic;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* Confession Display Enhancement */
.confession-display {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.confession-display::before {
    content: '📜';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    opacity: 0.5;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    display: inline-block;
    background: var(--bg-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.confession-text {
    font-size: 1.375rem;
    line-height: 1.7;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border-left: 6px solid #6366f1;
    font-style: italic;
    margin: 1rem 0 0;
    color: var(--text-color);
    position: relative;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.confession-text::before,
.confession-text::after {
    content: '"';
    font-size: 4rem;
    color: rgba(99, 102, 241, 0.2);
    position: absolute;
    font-family: serif;
    line-height: 1;
}

.confession-text::before {
    top: 10px;
    left: 20px;
}

.confession-text::after {
    bottom: 10px;
    right: 20px;
    transform: rotate(180deg);
}

/* Verdict Card Enhancement */
.verdict-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem;
    margin-bottom: 3rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.verdict-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.verdict-card.justified::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.verdict-card.questionable::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.verdict-card.wrong::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.verdict-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.verdict-icon-large {
    font-size: 4.5rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.verdict-title h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.verdict-badge {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    min-width: 200px;
}

.verdict-justified {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border-color: #10b981;
}

.verdict-questionable {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    border-color: #f59e0b;
}

.verdict-wrong {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    border-color: #ef4444;
}

.verdict-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.verdict-content {
    margin-bottom: 2.5rem;
}

.verdict-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border-left: 6px solid #6366f1;
    max-width: 700px;
    margin: 0 auto;
}

.message-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.verdict-message p {
    margin: 0;
    font-size: 1.375rem;
    line-height: 1.7;
    color: var(--text-color);
    font-style: italic;
}

/* Judge Comment Enhancement */
.judge-comment {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
    max-width: 700px;
    margin: 0 auto;
}

.judge-avatar {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.judge-comment-content {
    flex: 1;
    text-align: left;
}

.judge-name {
    font-weight: 800;
    color: #6366f1;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.comment-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-color);
    font-style: italic;
    margin: 0;
}

/* ===== JUDGMENT STATISTICS ENHANCEMENT ===== */
.stats-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem;
    margin: 3rem auto 4rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    max-width: 900px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '📊';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    opacity: 0.1;
    transform: rotate(15deg);
}

.stats-section h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-size: 1.75rem;
    position: relative;
    display: inline-block;
}

.stats-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat:hover {
    transform: translateY(-8px);
    border-color: #6366f1;
    box-shadow: var(--shadow-lg);
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.stat-content {
    text-align: center;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #6366f1;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.4;
    font-weight: 600;
}

/* ===== RELATED TOOLS ENHANCEMENT ===== */
.related-tools {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 3rem;
    margin: 3rem auto;
    border: 1px solid var(--border-color);
    max-width: 900px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.related-tools::before {
    content: '🔧';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 3rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.related-tools h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-size: 1.75rem;
    position: relative;
    display: inline-block;
}

.related-tools h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.tools-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card-mini {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-card-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card-mini:hover {
    transform: translateY(-8px);
    border-color: #6366f1;
    box-shadow: var(--shadow-lg);
}

.tool-card-mini:hover::before {
    transform: scaleX(1);
}

.tool-icon-mini {
    font-size: 3rem;
    width: 90px;
    height: 90px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: #6366f1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tool-card-mini:hover .tool-icon-mini {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.tool-name-mini {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.tool-card-mini:hover .tool-name-mini {
    color: #6366f1;
}

.tool-desc-mini {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.tool-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* ===== FAQ SECTION ENHANCEMENT ===== */
.faq-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem;
    margin: 4rem auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '❓';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 3rem;
    opacity: 0.1;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-size: 1.75rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-color);
}

.faq-question[aria-expanded="true"] {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-question h3 {
    margin: 0;
    flex: 1;
    font-size: 1.125rem;
    color: var(--text-color);
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: var(--bg-color);
}

.faq-answer[style*="max-height"] {
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    padding: 2rem;
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ===== SEO CONTENT SECTION ===== */
.seo-content-section {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 3rem;
    margin: 3rem auto;
    border: 1px solid var(--border-color);
    max-width: 900px;
}

.seo-content-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-size: 1.75rem;
    position: relative;
}

.seo-content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.seo-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.seo-card:hover {
    transform: translateY(-5px);
    border-color: #6366f1;
    box-shadow: var(--shadow);
}

.seo-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seo-icon {
    font-size: 2rem;
    color: #6366f1;
}

.seo-card-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.25rem;
}

.seo-card-body p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius);
    padding: 4rem;
    margin: 4rem auto;
    border: 1px solid rgba(99, 102, 241, 0.2);
    max-width: 900px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '⚖️';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 3rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.cta-section::after {
    content: '👨‍⚖️';
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 3rem;
    opacity: 0.1;
    transform: rotate(15deg);
}

.cta-section h2 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
    min-width: 250px;
}

/* ===== AD SECTIONS ===== */
.ad-section {
    margin: 2.5rem auto;
    display: flex;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    padding: 1.5rem;
}

.ad-728 {
    min-height: 90px;
    max-width: 728px;
}

.ad-300 {
    min-height: 250px;
    max-width: 300px;
}

.ad-post-verdict {
    margin: 2rem auto;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    max-width: 728px;
}

/* Share Section Enhancement */
.share-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.share-section h4 {
    margin-top: 0;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.share-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
    margin-top: 0;
    font-size: 1.125rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    min-width: 140px;
    text-decoration: none;
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2, #1a8cd8);
    color: white;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #4267B2, #365899);
    color: white;
}

.share-btn.copy {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.share-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.share-btn.twitter:hover {
    background: linear-gradient(135deg, #1a8cd8, #1DA1F2);
}

.share-btn.facebook:hover {
    background: linear-gradient(135deg, #365899, #4267B2);
}

.share-btn.copy:hover {
    background: var(--bg-color);
    border-color: #6366f1;
    color: #6366f1;
}

.share-icon {
    font-size: 2rem;
}

.share-text {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Action Buttons Enhancement */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.action-btn.secondary {
    background: var(--bg-card);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.action-btn.secondary:hover {
    border-color: #6366f1;
    background: var(--bg-secondary);
    color: #6366f1;
}

.btn-icon {
    font-size: 2.5rem;
}

.btn-text {
    font-size: 1.125rem;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 992px) {
    .tool-title {
        font-size: 2.5rem;
    }
    
    .seo-intro-card,
    .tool-form,
    .results-container,
    .stats-section,
    .related-tools,
    .faq-section,
    .seo-content-section,
    .cta-section {
        max-width: 95%;
        padding: 2.5rem;
    }
    
    .ad-728 {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .tool-page {
        padding: 1rem 0 3rem;
    }
    
    .tool-title {
        font-size: 2rem;
    }
    
    .tool-subtitle {
        font-size: 1rem;
        margin: 1.5rem auto 2rem;
    }
    
    .seo-intro-card {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto;
    }
    
    .seo-intro-card h2 {
        font-size: 1.75rem;
    }
    
    .seo-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit {
        padding: 1.5rem;
    }
    
    .tool-form {
        padding: 2rem 1.5rem;
    }
    
    .confession-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .confession-type {
        min-width: auto;
    }
    
    .judge-notice {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .notice-icon {
        margin: 0;
    }
    
    .btn-judge {
        width: 100%;
        min-width: auto;
        padding: 1.25rem;
    }
    
    .example-confessions {
        grid-template-columns: 1fr;
    }
    
    /* Results Section Mobile */
    .results-header {
        padding: 2rem 1.5rem;
    }
    
    .results-header h2 {
        font-size: 2rem;
    }
    
    .confession-display,
    .verdict-card,
    .share-section,
    .stats-section,
    .related-tools,
    .faq-section {
        padding: 1.5rem;
    }
    
    .confession-text {
        padding: 1.5rem;
        font-size: 1.125rem;
    }
    
    .verdict-header {
        gap: 1rem;
    }
    
    .verdict-icon-large {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
    
    .verdict-badge {
        padding: 0.75rem 1.5rem;
        font-size: 1.125rem;
        min-width: 150px;
    }
    
    .verdict-message {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .message-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .verdict-message p {
        font-size: 1.125rem;
    }
    
    .judge-comment {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .judge-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .judge-comment-content {
        text-align: center;
    }
    
    .comment-text {
        font-size: 1rem;
    }
    
    /* Stats Section Mobile */
    .stats-section h3,
    .related-tools h3,
    .faq-section h2,
    .seo-content-section h2,
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat {
        padding: 1.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    /* Related Tools Mobile */
    .tools-grid-mini {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card-mini {
        padding: 2rem;
    }
    
    .tool-icon-mini {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
    
    .tool-name-mini {
        font-size: 1.25rem;
    }
    
    /* FAQ Mobile */
    .faq-question {
        padding: 1.25rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-toggle {
        width: 25px;
        height: 25px;
        font-size: 1.25rem;
    }
    
    .faq-answer p {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    /* SEO Content Mobile */
    .seo-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .seo-card {
        padding: 1.5rem;
    }
    
    .seo-card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    /* CTA Mobile */
    .cta-section {
        padding: 2rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .cta-section .btn {
        width: 100%;
        min-width: auto;
    }
    
    /* Share Buttons Mobile */
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .share-btn {
        flex-direction: row;
        justify-content: center;
        padding: 1rem;
    }
    
    /* Action Buttons Mobile */
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-btn {
        min-height: 100px;
        padding: 1.5rem;
    }
    
    .btn-icon {
        font-size: 2rem;
    }
    
    /* Input Footer Mobile */
    .input-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    /* Ad Sections Mobile */
    .ad-728 {
        display: none;
    }
    
    .ad-300 {
        max-width: 90%;
        min-height: 200px;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb ol {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .breadcrumb ol::-webkit-scrollbar {
        height: 4px;
    }
    
    .breadcrumb ol::-webkit-scrollbar-track {
        background: var(--bg-secondary);
    }
    
    .breadcrumb ol::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }
    
    .breadcrumb li {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .tool-title {
        font-size: 1.75rem;
    }
    
    .tool-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .seo-intro-card {
        padding: 1.5rem 1rem;
    }
    
    .tool-form {
        padding: 1.5rem 1rem;
    }
    
    .confession-types {
        grid-template-columns: 1fr;
    }
    
    .confession-type {
        padding: 1.25rem;
    }
    
    .type-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }
    
    .confession-input {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    /* Results Mobile */
    .results-header h2 {
        font-size: 1.75rem;
    }
    
    .confession-text {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .verdict-card {
        padding: 1.25rem;
    }
    
    .verdict-icon-large {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .verdict-badge {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        min-width: 120px;
    }
    
    .verdict-message p {
        font-size: 1rem;
    }
    
    /* Stats Mobile */
    .stats-section,
    .related-tools,
    .faq-section,
    .seo-content-section,
    .cta-section {
        padding: 1.5rem 1rem;
        margin: 2rem auto;
    }
    
    .stat {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    /* Related Tools Mobile */
    .tool-card-mini {
        padding: 1.5rem;
    }
    
    .tool-icon-mini {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .tool-name-mini {
        font-size: 1.125rem;
    }
    
    .tool-desc-mini {
        font-size: 0.9rem;
    }
    
    /* FAQ Mobile */
    .faq-section h2 {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    /* Share Section Mobile */
    .share-section {
        padding: 1.5rem 1rem;
    }
    
    /* Action Buttons Mobile */
    .action-btn {
        padding: 1.25rem;
    }
    
    .btn-icon {
        font-size: 1.75rem;
    }
    
    .btn-text {
        font-size: 1rem;
    }
    
    /* Input Mobile */
    .char-count,
    .input-hint {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    
    /* Breadcrumb Small Mobile */
    .breadcrumb {
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }
    
    .breadcrumb ol {
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .breadcrumb a,
    .breadcrumb span[aria-current="page"] {
        padding: 0.4rem 0.8rem;
    }
    
    .breadcrumb li:not(:last-child)::after {
        margin-left: 0.25rem;
        font-size: 1rem;
    }
    
    /* Ad Mobile */
    .ad-300 {
        min-height: 150px;
        margin: 1.5rem auto;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .tool-title {
        font-size: 1.5rem;
    }
    
    .confession-types {
        gap: 0.75rem;
    }
    
    .confession-type {
        min-width: 100%;
    }
    
    .stats-grid,
    .tools-grid-mini,
    .seo-content-grid {
        gap: 1rem;
    }
    
    .stat,
    .tool-card-mini,
    .seo-card {
        padding: 1rem;
    }
    
    .faq-section,
    .cta-section {
        padding: 1rem;
    }
    
    .breadcrumb ol {
        font-size: 0.8rem;
        gap: 0.25rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .confession-type:hover,
    .example:hover,
    .share-btn:hover,
    .action-btn:hover,
    .verdict-badge:hover,
    .btn-judge:hover,
    .stat:hover,
    .tool-card-mini:hover,
    .seo-card:hover,
    .benefit:hover {
        transform: none !important;
    }
    
    .confession-type:active,
    .example:active,
    .share-btn:active,
    .action-btn:active {
        transform: scale(0.98) !important;
    }
    
    .confession-type input:checked + .type-icon {
        transform: scale(1.05) !important;
    }
}

/* Animation for fade in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}