/* ip-address-styles.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.main-content {
    padding-top: 120px;
    padding-bottom: 20px;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Button Styles */
.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.header-content {
    flex: 1;
    text-align: center;
    min-width: 300px;
}

.header-buttons-left,
.header-buttons-right {
    display: flex;
    gap: 10px;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Share Button - Left Side with Animation */
.share-btn {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    animation: shareGlow 2s ease-in-out infinite;
}

.share-btn:hover {
    background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
    animation: shareShake 0.5s ease-in-out;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shareShine 3s linear infinite;
}

@keyframes shareGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 242, 0, 0.955),
                    0 0 20px rgba(238, 255, 0, 0.953);
    }
    50% {
        box-shadow: 0 4px 16px rgba(251, 2, 159, 0.5),
                    0 0 30px rgba(0, 198, 255, 0.4);
    }
}

@keyframes shareShine {
    0% {
        left: -50%;
        top: -50%;
    }
    100% {
        left: 150%;
        top: 150%;
    }
}

@keyframes shareShake {
    0%, 100% {
        transform: translateY(-2px) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(-5deg);
    }
    75% {
        transform: translateY(-2px) rotate(5deg);
    }
}

/* CTA Button - Right Side */
.cta-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    animation: ctaPulse 2s infinite;
}

.cta-btn:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    animation: ctaBounce 0.5s ease;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(245, 87, 108, 0.6);
        transform: scale(1.02);
    }
}

@keyframes ctaBounce {
    0%, 100% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-buttons-left,
    .header-buttons-right {
        width: 100%;
        justify-content: center;
    }
    
    .header-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-btn {
        padding: 8px 16px;
        font-size: 12px;
        gap: 6px;
    }
}

.header h1 {
    font-size: 42px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 18px;
    opacity: 0.9;
}

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

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin-bottom: 20px;
    animation: slideUp 0.6s ease-out;
}

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

.ip-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.ip-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ip-address {
    font-size: 48px;
    font-weight: bold;
    word-break: break-all;
    margin-bottom: 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.get-ip-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.get-ip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.get-ip-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 10px;
    margin-bottom: 10px;
    z-index: 100;
    min-width: 180px;
}

.share-menu.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease;
    font-size: 14px;
    color: #333;
}

.share-btn:hover {
    background: #f8f9fa;
}

.share-btn.whatsapp {
    color: #25D366;
}

.share-btn.facebook {
    color: #1877F2;
}

.share-btn.email {
    color: #EA4335;
}

.section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    word-break: break-word;
}

.badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.location-card {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.location-title {
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.location-details {
    font-size: 24px;
    font-weight: 700;
}

.map-link {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 15px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.map-link:hover {
    background: rgba(255,255,255,0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.speed-test-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.speed-meter {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
}

.speed-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #4ade80 0deg,
        #22c55e 90deg,
        #eab308 180deg,
        #f59e0b 270deg,
        #ef4444 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotate 2s ease-in-out;
}

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

.speed-inner {
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.speed-value {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
}

.speed-unit {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.speed-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.speed-stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.speed-stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.speed-stat-value {
    font-size: 20px;
    font-weight: 700;
}

.test-speed-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.test-speed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.test-speed-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.3s ease;
}

/* SEO Content Styles */
.seo-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.seo-content h2 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 15px;
    margin-top: 30px;
}

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

.seo-content h3 {
    color: #764ba2;
    font-size: 22px;
    margin-bottom: 12px;
    margin-top: 25px;
}

.seo-content p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

.seo-content ul, .seo-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.seo-content li {
    color: #333;
    line-height: 1.8;
    margin-bottom: 8px;
}

.seo-content strong {
    color: #667eea;
    font-weight: 600;
}

.seo-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
}

.faq-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.faq-question {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.faq-answer {
    color: #666;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-title {
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-description {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    opacity: 0.9;
}

.hidden {
    display: none;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

@media (max-width: 768px) {
    .main-content {
        padding-top: 100px;
    }
    
    .header h1 {
        font-size: 32px;
    }
    
    .ip-address {
        font-size: 32px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 20px;
    }
    
    .share-menu {
        left: 0;
        transform: none;
        min-width: 160px;
    }
    
    .seo-content {
        padding: 20px;
    }
    
    .seo-content h2 {
        font-size: 24px;
    }
    
    .seo-content h3 {
        font-size: 20px;
    }
}

