/* Screen Recorder - Complete Styling */

.tool-page {
    padding-top: 0;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #7c3aed;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.tool-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '🎬';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    top: -50px;
    right: -50px;
    animation: rotate 20s linear infinite;
}

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

.tool-header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: record 2s ease-in-out infinite;
}

@keyframes record {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.18);
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-separator {
    opacity: 0.5;
}

.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

.recorder-root {
    max-width: 1000px;
    margin: 0 auto;
}

/* Start Section */
.start-section {
    margin-bottom: 40px;
}

.start-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    border: 2px solid rgba(239,68,68,0.08);
}

.recorder-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.start-card h3 {
    color: #1f2937;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.start-card > p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Record Options */
.record-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    padding: 25px 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: default;
}

.option-card:hover {
    background: #fef2f2;
    border-color: #ef4444;
    transform: translateY(-3px);
}

.option-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.option-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.option-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Recording Settings */
.recording-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    max-width: 400px;
    margin: 0 auto 30px;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ef4444;
}

/* Start Button */
.btn-start {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(239,68,68,0.3);
    transition: all 0.3s;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(239,68,68,0.4);
}

.record-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

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

.info-text {
    margin-top: 15px;
}

.info-text small {
    color: #9ca3af;
    font-size: 13px;
}

/* Recording Section */
.recording-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 2px solid rgba(239,68,68,0.08);
}

.recording-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 12px;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rec-dot {
    width: 16px;
    height: 16px;
    background: #ef4444;
    border-radius: 50%;
}

.rec-dot.pulsing {
    animation: pulse-rec 1s ease-in-out infinite;
}

@keyframes pulse-rec {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.rec-text {
    font-weight: 800;
    color: #dc2626;
    font-size: 16px;
    letter-spacing: 1px;
}

.recording-timer {
    font-size: 24px;
    font-weight: 800;
    color: #dc2626;
    font-family: 'Courier New', monospace;
}

/* Preview Container */
.preview-container {
    position: relative;
    background: #1f2937;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

#previewVideo {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.webcam-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#webcamVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Recording Controls */
.recording-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-control {
    padding: 12px 24px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

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

.btn-resume {
    border-color: #10b981;
    color: #10b981;
}

.btn-resume:hover {
    background: #d1fae5;
}

.btn-stop {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(239,68,68,0.3);
    transition: all 0.3s;
}

.btn-stop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239,68,68,0.4);
}

.control-icon {
    font-size: 18px;
}

/* Recording Info */
.recording-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 700;
}

/* Result Section */
.result-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 2px solid rgba(239,68,68,0.08);
}

.result-card h3 {
    color: #10b981;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
}

/* Recording Stats */
.recording-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.stat-box {
    padding: 20px 30px;
    background: #f9fafb;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e5e7eb;
    min-width: 150px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
}

/* Video Preview */
.video-preview {
    margin-bottom: 25px;
}

.video-preview label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 10px;
}

/* Download Actions */
.download-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-download {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}

.btn-ghost {
    background: white;
    border: 2px solid rgba(0,0,0,0.1);
    color: #1f2937;
}

.btn-ghost:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Info & Tips Boxes */
.info-box {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 5px solid #ef4444;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.info-box h4 {
    color: #dc2626;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.info-box ul {
    margin-left: 20px;
}

.info-box li {
    margin-bottom: 10px;
    color: #374151;
    line-height: 1.6;
}

.tips-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 30px;
}

.tips-box h4 {
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.tips-box ul {
    margin-left: 20px;
}

.tips-box li {
    margin-bottom: 10px;
    color: #1e3a8a;
    line-height: 1.6;
}

/* SEO Content */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    color: #ef4444;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #ef4444;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    font-size: 15px;
    font-weight: 600;
    z-index: 10000;
    animation: slideInUp 0.3s ease-out;
}

.notification-toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification-toast.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.notification-toast.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

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

/* Responsive */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .start-card {
        padding: 40px 25px;
    }
    
    .record-options {
        grid-template-columns: 1fr;
    }
    
    .recording-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .webcam-overlay {
        width: 120px;
        height: 90px;
        bottom: 10px;
        right: 10px;
    }
    
    .recording-controls {
        flex-wrap: wrap;
    }
    
    .recording-stats {
        flex-direction: column;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .content-article h2 {
        font-size: 26px;
    }
}

@media (max-width: 520px) {
    .tool-header {
        padding: 40px 20px;
    }
    
    .tool-header h1 {
        font-size: 28px;
    }
    
    .tool-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-separator {
        display: none;
    }
    
    .notification-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        font-size: 14px;
    }
}

html {
    scroll-behavior: smooth;
}