/* Browser Info & IP Checker - Modern Slick Design */

/* ===============================================
   MODERN TOOL HEADER DESIGN
   =============================================== */
.tool-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    border-radius: var(--radius-xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.tool-header::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.tool-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.tool-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===============================================
   MODERN SECTION CONTAINERS
   =============================================== */
.detection-section,
.browser-section,
.display-section,
.network-section,
.advanced-section {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.detection-section::before,
.browser-section::before,
.display-section::before,
.network-section::before,
.advanced-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color), var(--success-color));
}

.detection-section:hover,
.browser-section:hover,
.display-section:hover,
.network-section:hover,
.advanced-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-hover);
}

.info-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Section Headers */
.detection-section h2,
.browser-section h2,
.display-section h2,
.network-section h2,
.advanced-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detection-section h2 i,
.browser-section h2 i,
.display-section h2 i,
.network-section h2 i,
.advanced-section h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ===============================================
   MODERN BUTTON SYSTEM
   =============================================== */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.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.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #475569);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), #0284c7);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-info:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

/* ===============================================
   DETECTION SECTION
   =============================================== */
.detection-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detection-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.detection-status {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.detection-status:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.status-indicator i {
    color: var(--success-color);
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-indicator.detecting i {
    color: var(--warning-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.status-indicator.complete i {
    color: var(--success-color);
    animation: none;
}

/* ===============================================
   INFO GRID & CARDS
   =============================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
    z-index: 1;
}

.card-icon.browser {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.card-icon.system {
    background: linear-gradient(135deg, #4834d4, #686de0);
}

.card-icon.device {
    background: linear-gradient(135deg, #00d2d3, #01a3a4);
}

.card-icon.display {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
}

.card-icon.performance {
    background: linear-gradient(135deg, #feca57, #ff9f43);
}

.card-icon.features {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
}

.card-icon.ip {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
}

.card-icon.location {
    background: linear-gradient(135deg, #feca57, #ff9f43);
}

.card-icon.security {
    background: linear-gradient(135deg, #ff6348, #e17055);
}

.card-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.info-item .label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
    max-width: 200px;
}

.info-item .value.small {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 150px;
}

/* ===============================================
   ADVANCED SECTION TABS
   =============================================== */
.advanced-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.advanced-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 0.375rem;
    gap: 0.375rem;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    min-width: 150px;
}

.tab-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.6s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    min-height: 300px;
    transition: var(--transition);
}

.tab-content.active {
    display: block;
}

.tab-content:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Code Output */
.code-container {
    position: relative;
}

.code-output {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
}

/* Plugins List */
.plugins-list {
    display: grid;
    gap: 1rem;
}

.plugin-item {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.plugin-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.plugin-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plugin-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* WebGL Info */
.webgl-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Fonts Container */
.fonts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.font-item {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.font-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* ===============================================
   SEO CONTENT SECTIONS
   =============================================== */
.seo-content {
    background: var(--bg-secondary);
    margin-top: 4rem;
}

.seo-content section {
    padding: 4rem 0;
}

.seo-content section:nth-child(even) {
    background: var(--bg-tertiary);
}

.seo-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.seo-content h2 i {
    color: var(--primary-color);
    font-size: 2rem;
}

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

.step-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color), var(--success-color));
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-hover);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.step-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
}

.features-list {
    display: grid;
        gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
        gap: 1.5rem;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-hover);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-item h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.use-case-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
        text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color), var(--success-color));
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-hover);
}

.use-case-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.use-case-icon i {
    font-size: 2rem;
    color: white;
}

.use-case-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.use-case-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
        margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

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

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

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

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .advanced-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        min-width: 120px;
    }

    .fonts-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .steps-grid,
    .use-cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .features-list {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tool-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .tool-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .tool-header p {
        font-size: 1rem;
    }

    .detection-section,
    .browser-section,
    .display-section,
    .network-section,
    .advanced-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .seo-content h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .detection-actions {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 1.5rem;
    }

    .advanced-tabs {
        flex-direction: column;
    }

    .tab-btn {
        min-width: unset;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .fonts-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .steps-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-item i {
        align-self: center;
    }

    .faq-question {
        flex-direction: column;
    gap: 1rem;
        align-items: flex-start;
    }

    .faq-answer {
        padding: 0 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .tool-header {
        padding: 1.5rem 0.5rem;
    }

    .tool-header h1 {
        font-size: 1.75rem;
    }

    .seo-content h2 {
        font-size: 1.5rem;
    }

    .detection-section,
    .browser-section,
    .display-section,
    .network-section,
    .advanced-section {
        padding: 1rem;
    }

    .info-card {
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon i {
        font-size: 1.2rem;
    }

    .info-item {
        flex-direction: column;
    align-items: flex-start;
        gap: 0.5rem;
    }

    .info-item .label {
        min-width: unset;
    }

    .info-item .value {
        text-align: left;
        max-width: unset;
    }

    .tab-content {
        padding: 1rem;
        min-height: 200px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .step-card,
    .use-case-card {
    padding: 1.5rem;
    }

    .step-number,
    .use-case-icon {
        width: 50px;
        height: 50px;
    }

    .feature-item i {
        font-size: 2rem;
    }
} 