/* ===========================================
   ANDROIDRO.RO - Tool-uri CSS
   Dark Theme + Android Green (#3DDC84)
   =========================================== */

:root {
    --android-green: #3DDC84;
    --android-green-dark: #2ecc71;
    --android-green-light: #5dffa4;
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #242424;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #333333;
    --border-light: #404040;
    --error-color: #ff6b6b;
    --warning-color: #ffd93d;
    --success-color: #3DDC84;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* ===========================================
   Layout
   =========================================== */

.tool-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 1024px) {
    .tool-page-wrapper {
        grid-template-columns: 1fr;
    }
    
    .tool-sidebar {
        order: -1;
    }
}

/* ===========================================
   Breadcrumbs
   =========================================== */

.tool-breadcrumbs {
    grid-column: 1 / -1;
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.tool-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.tool-breadcrumbs a:hover {
    color: var(--android-green);
}

.tool-breadcrumbs .separator {
    margin: 0 10px;
    color: var(--text-muted);
}

.tool-breadcrumbs .current {
    color: var(--android-green);
}

/* ===========================================
   Tool Container
   =========================================== */

.tool-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.tool-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tool-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.tool-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ===========================================
   Tool Content Area
   =========================================== */

.tool-content {
    min-height: 300px;
}

.tool-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--android-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===========================================
   Tool Form Elements
   =========================================== */

.tool-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group label .required {
    color: var(--error-color);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Input Fields */
.tool-input,
.tool-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.tool-input:focus,
.tool-select:focus {
    border-color: var(--android-green);
    box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.15);
}

.tool-input::placeholder {
    color: var(--text-muted);
}

.tool-input.error {
    border-color: var(--error-color);
}

.tool-input.success {
    border-color: var(--success-color);
}

/* Select Dropdown */
.tool-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

/* Range Slider */
.tool-range {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.tool-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--android-green);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.tool-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-value {
    display: inline-block;
    min-width: 60px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--android-green);
    text-align: center;
}

/* Checkbox & Radio */
.tool-checkbox,
.tool-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.tool-checkbox input,
.tool-radio input {
    width: 20px;
    height: 20px;
    accent-color: var(--android-green);
    cursor: pointer;
}

/* ===========================================
   Buttons
   =========================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    background: var(--android-green);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--android-green-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: var(--android-green);
    background: transparent;
    border: 2px solid var(--android-green);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(61, 220, 132, 0.1);
}

.btn-reset {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-reset:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
}

/* ===========================================
   Results Area
   =========================================== */

.tool-results {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.tool-results.hidden {
    display: none;
}

.results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.results-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.results-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 220, 132, 0.15);
    border-radius: 50%;
    color: var(--android-green);
}

/* Result Cards */
.result-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 15px;
}

.result-card:last-child {
    margin-bottom: 0;
}

.result-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.result-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--android-green);
}

.result-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Result Table */
.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.result-table th,
.result-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.result-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
}

.result-table td {
    font-size: 14px;
    color: var(--text-primary);
}

.result-table tr:last-child td {
    border-bottom: none;
}

.result-table tr:hover td {
    background: rgba(61, 220, 132, 0.05);
}

/* Result Tags */
.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.result-tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
}

.result-tag.supported {
    background: rgba(61, 220, 132, 0.15);
    border-color: var(--android-green);
    color: var(--android-green);
}

.result-tag.not-supported {
    background: rgba(255, 107, 107, 0.15);
    border-color: var(--error-color);
    color: var(--error-color);
}

/* Progress Bar */
.result-progress {
    margin-top: 12px;
}

.progress-bar {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--android-green-dark), var(--android-green));
    border-radius: 6px;
    transition: width var(--transition-normal);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===========================================
   Alert Messages
   =========================================== */

.tool-alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tool-alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.tool-alert-content {
    flex: 1;
}

.tool-alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.tool-alert-message {
    font-size: 14px;
    line-height: 1.5;
}

.tool-alert.info {
    background: rgba(61, 220, 132, 0.1);
    border: 1px solid rgba(61, 220, 132, 0.3);
    color: var(--android-green);
}

.tool-alert.warning {
    background: rgba(255, 217, 61, 0.1);
    border: 1px solid rgba(255, 217, 61, 0.3);
    color: var(--warning-color);
}

.tool-alert.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--error-color);
}

.tool-alert.success {
    background: rgba(61, 220, 132, 0.1);
    border: 1px solid rgba(61, 220, 132, 0.3);
    color: var(--success-color);
}

/* ===========================================
   Sidebar
   =========================================== */

.tool-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.tool-sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    padding-left: 12px;
    border-left: 3px solid var(--android-green);
}

.related-tools {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.related-tools li {
    border-bottom: 1px solid var(--border-color);
}

.related-tools li:last-child {
    border-bottom: none;
}

.related-tools a {
    display: block;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.related-tools a:hover {
    background: var(--bg-tertiary);
    color: var(--android-green);
    padding-left: 22px;
}

/* ===========================================
   SEO Content Section
   =========================================== */

.tool-seo-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.tool-seo-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 30px 0 15px 0;
}

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

.tool-seo-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 25px 0 12px 0;
}

.tool-seo-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.tool-seo-content ul,
.tool-seo-content ol {
    margin: 15px 0;
    padding-left: 25px;
    color: var(--text-secondary);
}

.tool-seo-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ===========================================
   FAQ Section
   =========================================== */

.tool-faq {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.tool-faq h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.faq-item {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition-fast);
}

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

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--android-green);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item.active .faq-answer {
    padding: 0 20px 18px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* ===========================================
   Tool Not Found
   =========================================== */

.tool-not-found {
    text-align: center;
    padding: 60px 20px;
}

.tool-not-found h1 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.tool-not-found p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 768px) {
    .tool-page-wrapper {
        padding: 15px;
    }
    
    .tool-container {
        padding: 20px;
    }
    
    .tool-header h1 {
        font-size: 22px;
    }
    
    .tool-description {
        font-size: 14px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 16px;
    }
    
    .result-card-value {
        font-size: 20px;
    }
    
    .result-table {
        font-size: 13px;
    }
    
    .result-table th,
    .result-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .tool-header h1 {
        font-size: 20px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .tool-input,
    .tool-select {
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* ===========================================
   Animations
   =========================================== */

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

.result-card {
    animation: fadeIn 0.3s ease forwards;
}

.result-card:nth-child(2) { animation-delay: 0.1s; }
.result-card:nth-child(3) { animation-delay: 0.2s; }
.result-card:nth-child(4) { animation-delay: 0.3s; }

/* ===========================================
   Print Styles
   =========================================== */

@media print {
    .tool-sidebar,
    .tool-breadcrumbs,
    .btn-primary,
    .btn-secondary,
    .btn-reset {
        display: none;
    }
    
    .tool-page-wrapper {
        display: block;
    }
    
    .tool-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* CSC Method Styling */
.csc-method {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 15px;
}
.csc-method h4 {
    color: var(--android-green);
    font-size: 15px;
    margin: 0 0 12px 0;
}
.csc-method ol {
    margin: 0;
    padding-left: 20px;
}
.csc-method li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}
.csc-method code {
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--text-primary);
}
.csc-example-box {
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.1) 0%, rgba(61, 220, 132, 0.05) 100%);
    border: 1px solid var(--android-green);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-top: 15px;
}
.csc-example-box h4 {
    color: var(--android-green);
    margin: 0 0 10px 0;
    font-size: 15px;
}
.csc-example-box p {
    margin: 8px 0;
    color: var(--text-secondary);
}
.csc-example-box code {
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--text-primary);
}
.csc-example-box strong {
    color: var(--android-green);
}
